mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-25 01:38:11 -07:00
Fix refactored nfc app defines usage
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
#include "scenes/nfc_maker_scene.h"
|
#include "scenes/nfc_maker_scene.h"
|
||||||
#include <lib/flipper_format/flipper_format.h>
|
#include <lib/flipper_format/flipper_format.h>
|
||||||
#include <toolbox/name_generator.h>
|
#include <toolbox/name_generator.h>
|
||||||
#include <applications/main/nfc/nfc_i.h>
|
#include <applications/main/nfc/nfc_app_i.h>
|
||||||
#include <furi_hal_bt.h>
|
#include <furi_hal_bt.h>
|
||||||
|
|
||||||
#define MAC_INPUT_LEN GAP_MAC_ADDR_SIZE
|
#define MAC_INPUT_LEN GAP_MAC_ADDR_SIZE
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ void nfc_maker_scene_result_on_enter(void* context) {
|
|||||||
|
|
||||||
FlipperFormat* file = flipper_format_file_alloc(furi_record_open(RECORD_STORAGE));
|
FlipperFormat* file = flipper_format_file_alloc(furi_record_open(RECORD_STORAGE));
|
||||||
FuriString* path = furi_string_alloc();
|
FuriString* path = furi_string_alloc();
|
||||||
furi_string_printf(path, NFC_APP_FOLDER "/%s" NFC_APP_FILENAME_EXTENSION, app->save_buf);
|
furi_string_printf(path, NFC_APP_FOLDER "/%s" NFC_APP_EXTENSION, app->save_buf);
|
||||||
|
|
||||||
uint32_t pages = 135;
|
uint32_t pages = 135;
|
||||||
size_t size = pages * 4;
|
size_t size = pages * 4;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ void nfc_maker_scene_save_on_enter(void* context) {
|
|||||||
true);
|
true);
|
||||||
|
|
||||||
ValidatorIsFile* validator_is_file =
|
ValidatorIsFile* validator_is_file =
|
||||||
validator_is_file_alloc_init(NFC_APP_FOLDER, NFC_APP_FILENAME_EXTENSION, NULL);
|
validator_is_file_alloc_init(NFC_APP_FOLDER, NFC_APP_EXTENSION, NULL);
|
||||||
text_input_set_validator(text_input, validator_is_file_callback, validator_is_file);
|
text_input_set_validator(text_input, validator_is_file_callback, validator_is_file);
|
||||||
|
|
||||||
view_dispatcher_switch_to_view(app->view_dispatcher, NfcMakerViewTextInput);
|
view_dispatcher_switch_to_view(app->view_dispatcher, NfcMakerViewTextInput);
|
||||||
|
|||||||
Reference in New Issue
Block a user