Skip to content

Commit

Permalink
if defined fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Aug 10, 2024
1 parent 6ba386c commit 45395bc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion helpers/subrem_custom_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ typedef enum {
SubmenuIndexSubRemOpenMapFile = 0,
SubmenuIndexSubRemEditMapFile,
SubmenuIndexSubRemNewMapFile,
#if FURI_DEBUG
#ifdef FURI_DEBUG
SubmenuIndexSubRemRemoteView,
#endif
// SubmenuIndexSubRemAbout,
Expand Down
2 changes: 1 addition & 1 deletion helpers/subrem_presets.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ SubRemLoadSubState subrem_sub_preset_load(

ret = SubRemLoadSubStateOK;

#if FURI_DEBUG
#ifdef FURI_DEBUG
FURI_LOG_I(TAG, "%-16s - protocol Loaded", furi_string_get_cstr(sub_preset->label));
#endif
} while(false);
Expand Down
4 changes: 2 additions & 2 deletions scenes/subrem_scene_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void subrem_scene_start_on_enter(void* context) {
SubmenuIndexSubRemOpenMapFile,
subrem_scene_start_submenu_callback,
app);
#if FURI_DEBUG
#ifdef FURI_DEBUG
submenu_add_item(
submenu,
"Remote_Debug",
Expand Down Expand Up @@ -66,7 +66,7 @@ bool subrem_scene_start_on_event(void* context, SceneManagerEvent event) {
scene_manager_next_scene(app->scene_manager, SubRemSceneOpenMapFile);
consumed = true;
}
#if FURI_DEBUG
#ifdef FURI_DEBUG
else if(event.event == SubmenuIndexSubRemRemoteView) {
scene_manager_next_scene(app->scene_manager, SubRemSceneRemote);
consumed = true;
Expand Down
8 changes: 4 additions & 4 deletions subghz_remote_app_i.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static bool subrem_map_preset_load(SubRemMapPreset* map_preset, FlipperFormat* f
sub_preset = map_preset->subs_preset[i];
if(!flipper_format_read_string(
fff_data_file, map_file_labels[i][0], sub_preset->file_path)) {
#if FURI_DEBUG
#ifdef FURI_DEBUG
FURI_LOG_W(TAG, "No file patch for %s", map_file_labels[i][0]);
#endif
sub_preset->type = SubGhzProtocolTypeUnknown;
Expand All @@ -88,7 +88,7 @@ static bool subrem_map_preset_load(SubRemMapPreset* map_preset, FlipperFormat* f
// Rewind error
} else if(!flipper_format_read_string(
fff_data_file, map_file_labels[i][1], sub_preset->label)) {
#if FURI_DEBUG
#ifdef FURI_DEBUG
FURI_LOG_W(TAG, "No Label for %s", map_file_labels[i][0]);
#endif
ret = true;
Expand All @@ -114,13 +114,13 @@ static bool subrem_map_preset_load(SubRemMapPreset* map_preset, FlipperFormat* f
SubRemLoadMapState subrem_map_file_load(SubGhzRemoteApp* app, const char* file_path) {
furi_assert(app);
furi_assert(file_path);
#if FURI_DEBUG
#ifdef FURI_DEBUG
FURI_LOG_I(TAG, "Load Map File Start");
#endif
Storage* storage = furi_record_open(RECORD_STORAGE);
FlipperFormat* fff_data_file = flipper_format_file_alloc(storage);
SubRemLoadMapState ret = SubRemLoadMapStateErrorOpenError;
#if FURI_DEBUG
#ifdef FURI_DEBUG
FURI_LOG_I(TAG, "Open Map File..");
#endif
subrem_map_preset_reset(app->map_preset);
Expand Down

0 comments on commit 45395bc

Please sign in to comment.