Просмотр исходного кода

Quick fixes for FW differences

Zachary Weiss 1 год назад
Родитель
Сommit
eefae49444
5 измененных файлов с 3 добавлено и 6 удалено
  1. 1 1
      application.fam
  2. 0 1
      helpers/mag_text_input.c
  3. 0 2
      mag_device.h
  4. 1 1
      mag_i.h
  5. 1 1
      scenes/mag_scene_input_value.c

+ 1 - 1
application.fam

@@ -10,7 +10,7 @@ App(
         "notification",
         "dialogs",
     ],
-    resources="resources",
+    # resources="resources",  # only for use on MTNM; need to find approach for all FWs
     provides=[],
     stack_size=6 * 1024,
     order=64,  # keep it at the bottom of the list while still WIP

+ 0 - 1
helpers/mag_text_input.c

@@ -1,6 +1,5 @@
 #include "mag_text_input.h"
 #include <gui/elements.h>
-#include <assets_icons.h>
 #include <furi.h>
 
 struct Mag_TextInput {

+ 0 - 2
mag_device.h

@@ -8,8 +8,6 @@
 #include "mag_icons.h"
 #include "helpers/mag_types.h"
 
-#include <assets_icons.h>
-
 #define MAG_DEV_NAME_MAX_LEN 22
 #define MAG_DEV_TRACKS 3
 

+ 1 - 1
mag_i.h

@@ -44,7 +44,7 @@
 #define submenu_add_lockable_item(                                             \
     submenu, label, index, callback, callback_context, locked, locked_message) \
     if(!locked) {                                                              \
-        submenu_add_item(submenu, label, index, callback, callback_context)    \
+        submenu_add_item(submenu, label, index, callback, callback_context);   \
     }
 #endif
 

+ 1 - 1
scenes/mag_scene_input_value.c

@@ -11,7 +11,7 @@ void mag_scene_input_value_on_enter(void* context) {
     text_input_set_result_callback(
         text_input, mag_text_input_callback, mag, mag->text_store, MAG_TEXT_STORE_SIZE, true);
 
-    text_input_add_illegal_symbols(text_input);
+    // text_input_add_illegal_symbols(text_input);
 
     view_dispatcher_switch_to_view(mag->view_dispatcher, MagViewTextInput);
 }