Skip to content

Commit 45395bc

Browse files
committed
if defined fixes
1 parent 6ba386c commit 45395bc

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

helpers/subrem_custom_event.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ typedef enum {
1313
SubmenuIndexSubRemOpenMapFile = 0,
1414
SubmenuIndexSubRemEditMapFile,
1515
SubmenuIndexSubRemNewMapFile,
16-
#if FURI_DEBUG
16+
#ifdef FURI_DEBUG
1717
SubmenuIndexSubRemRemoteView,
1818
#endif
1919
// SubmenuIndexSubRemAbout,

helpers/subrem_presets.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ SubRemLoadSubState subrem_sub_preset_load(
181181

182182
ret = SubRemLoadSubStateOK;
183183

184-
#if FURI_DEBUG
184+
#ifdef FURI_DEBUG
185185
FURI_LOG_I(TAG, "%-16s - protocol Loaded", furi_string_get_cstr(sub_preset->label));
186186
#endif
187187
} while(false);

scenes/subrem_scene_start.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void subrem_scene_start_on_enter(void* context) {
1919
SubmenuIndexSubRemOpenMapFile,
2020
subrem_scene_start_submenu_callback,
2121
app);
22-
#if FURI_DEBUG
22+
#ifdef FURI_DEBUG
2323
submenu_add_item(
2424
submenu,
2525
"Remote_Debug",
@@ -66,7 +66,7 @@ bool subrem_scene_start_on_event(void* context, SceneManagerEvent event) {
6666
scene_manager_next_scene(app->scene_manager, SubRemSceneOpenMapFile);
6767
consumed = true;
6868
}
69-
#if FURI_DEBUG
69+
#ifdef FURI_DEBUG
7070
else if(event.event == SubmenuIndexSubRemRemoteView) {
7171
scene_manager_next_scene(app->scene_manager, SubRemSceneRemote);
7272
consumed = true;

subghz_remote_app_i.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static bool subrem_map_preset_load(SubRemMapPreset* map_preset, FlipperFormat* f
7777
sub_preset = map_preset->subs_preset[i];
7878
if(!flipper_format_read_string(
7979
fff_data_file, map_file_labels[i][0], sub_preset->file_path)) {
80-
#if FURI_DEBUG
80+
#ifdef FURI_DEBUG
8181
FURI_LOG_W(TAG, "No file patch for %s", map_file_labels[i][0]);
8282
#endif
8383
sub_preset->type = SubGhzProtocolTypeUnknown;
@@ -88,7 +88,7 @@ static bool subrem_map_preset_load(SubRemMapPreset* map_preset, FlipperFormat* f
8888
// Rewind error
8989
} else if(!flipper_format_read_string(
9090
fff_data_file, map_file_labels[i][1], sub_preset->label)) {
91-
#if FURI_DEBUG
91+
#ifdef FURI_DEBUG
9292
FURI_LOG_W(TAG, "No Label for %s", map_file_labels[i][0]);
9393
#endif
9494
ret = true;
@@ -114,13 +114,13 @@ static bool subrem_map_preset_load(SubRemMapPreset* map_preset, FlipperFormat* f
114114
SubRemLoadMapState subrem_map_file_load(SubGhzRemoteApp* app, const char* file_path) {
115115
furi_assert(app);
116116
furi_assert(file_path);
117-
#if FURI_DEBUG
117+
#ifdef FURI_DEBUG
118118
FURI_LOG_I(TAG, "Load Map File Start");
119119
#endif
120120
Storage* storage = furi_record_open(RECORD_STORAGE);
121121
FlipperFormat* fff_data_file = flipper_format_file_alloc(storage);
122122
SubRemLoadMapState ret = SubRemLoadMapStateErrorOpenError;
123-
#if FURI_DEBUG
123+
#ifdef FURI_DEBUG
124124
FURI_LOG_I(TAG, "Open Map File..");
125125
#endif
126126
subrem_map_preset_reset(app->map_preset);

0 commit comments

Comments
 (0)