mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-08 05:39:09 -07:00
Fix nfc maker includes
This commit is contained in:
@@ -11,4 +11,5 @@ App(
|
||||
stack_size=1 * 1024,
|
||||
fap_icon="nfc_maker_10px.png",
|
||||
fap_category="NFC",
|
||||
fap_icon_assets="assets",
|
||||
)
|
||||
|
||||
BIN
applications/external/nfc_maker/assets/DolphinNice_96x59.png
vendored
Normal file
BIN
applications/external/nfc_maker/assets/DolphinNice_96x59.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
3
applications/external/nfc_maker/nfc_maker.h
vendored
3
applications/external/nfc_maker/nfc_maker.h
vendored
@@ -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
|
||||
|
||||
11
applications/external/nfc_maker/strnlen.c
vendored
Normal file
11
applications/external/nfc_maker/strnlen.c
vendored
Normal 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;
|
||||
}
|
||||
6
applications/external/nfc_maker/strnlen.h
vendored
Normal file
6
applications/external/nfc_maker/strnlen.h
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
#pragma weak strnlen
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
size_t strnlen(const char* s, size_t maxlen);
|
||||
Reference in New Issue
Block a user