Fix nfc maker includes

This commit is contained in:
MX
2023-07-06 19:28:29 +03:00
parent 2211314900
commit 3f4887e8d3
5 changed files with 20 additions and 1 deletions

View File

@@ -11,4 +11,5 @@ App(
stack_size=1 * 1024,
fap_icon="nfc_maker_10px.png",
fap_category="NFC",
fap_icon_assets="assets",
)

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -6,7 +6,7 @@
#include <gui/modules/validators.h>
#include <gui/view_dispatcher.h>
#include <gui/scene_manager.h>
#include <assets_icons.h>
#include "nfc_maker_icons.h"
#include <gui/modules/submenu.h>
#include <gui/modules/text_input.h>
#include <gui/modules/byte_input.h>
@@ -16,6 +16,7 @@
#include <lib/toolbox/random_name.h>
#include <applications/main/nfc/nfc_i.h>
#include <furi_hal_bt.h>
#include "strnlen.h"
#define TEXT_INPUT_LEN 248
#define WIFI_INPUT_LEN 90

View File

@@ -0,0 +1,11 @@
#include "strnlen.h"
size_t strnlen(const char* s, size_t maxlen) {
size_t len;
for(len = 0; len < maxlen; len++, s++) {
if(!*s) break;
}
return len;
}

View File

@@ -0,0 +1,6 @@
#pragma once
#pragma weak strnlen
#include <stddef.h>
size_t strnlen(const char* s, size_t maxlen);