mirror of
https://protopirate.net/ProtoPirate/ProtoPirate.git
synced 2026-08-29 03:48:23 +00:00
better defines
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
//#define ENABLE_TIMING_TUNER_SCENE
|
||||
#define ENABLE_SUB_DECODE_SCENE
|
||||
|
||||
// #define ENABLE_EMULATE_FEATURE
|
||||
|
||||
#define REMOVE_LOGS
|
||||
|
||||
#ifdef REMOVE_LOGS
|
||||
// Undefine existing macros
|
||||
#undef FURI_LOG_E
|
||||
#undef FURI_LOG_W
|
||||
#undef FURI_LOG_I
|
||||
#undef FURI_LOG_D
|
||||
#undef FURI_LOG_T
|
||||
// Define empty macros
|
||||
#define FURI_LOG_E(tag, format, ...)
|
||||
#define FURI_LOG_W(tag, format, ...)
|
||||
#define FURI_LOG_I(tag, format, ...)
|
||||
#define FURI_LOG_D(tag, format, ...)
|
||||
#define FURI_LOG_T(tag, format, ...)
|
||||
|
||||
#endif // REMOVE_LOGS
|
||||
+1
-23
@@ -23,32 +23,10 @@
|
||||
#include <lib/subghz/devices/devices.h>
|
||||
#include <lib/subghz/subghz_file_encoder_worker.h>
|
||||
#include <dialogs/dialogs.h>
|
||||
#include "defines.h"
|
||||
|
||||
#define PROTOPIRATE_KEYSTORE_DIR_NAME APP_ASSETS_PATH("encrypted")
|
||||
|
||||
//#define ENABLE_TIMING_TUNER_SCENE
|
||||
//#define ENABLE_SUB_DECODE_SCENE
|
||||
|
||||
//#define ENABLE_EMULATE_FEATURE
|
||||
|
||||
#define REMOVE_LOGS
|
||||
|
||||
#ifdef REMOVE_LOGS
|
||||
// Undefine existing macros
|
||||
#undef FURI_LOG_E
|
||||
#undef FURI_LOG_W
|
||||
#undef FURI_LOG_I
|
||||
#undef FURI_LOG_D
|
||||
#undef FURI_LOG_T
|
||||
// Define empty macros
|
||||
#define FURI_LOG_E(tag, format, ...)
|
||||
#define FURI_LOG_W(tag, format, ...)
|
||||
#define FURI_LOG_I(tag, format, ...)
|
||||
#define FURI_LOG_D(tag, format, ...)
|
||||
#define FURI_LOG_T(tag, format, ...)
|
||||
|
||||
#endif // REMOVE_LOGS
|
||||
|
||||
typedef struct ProtoPirateApp ProtoPirateApp;
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// scenes/protopirate_scene_config.h
|
||||
|
||||
//#define ENABLE_TIMING_TUNER_SCENE
|
||||
//#define ENABLE_SUB_DECODE_SCENE
|
||||
#include "../defines.h"
|
||||
|
||||
ADD_SCENE(protopirate, start, Start)
|
||||
#ifdef ENABLE_SUB_DECODE_SCENE
|
||||
@@ -13,7 +12,9 @@ ADD_SCENE(protopirate, receiver_config, ReceiverConfig)
|
||||
ADD_SCENE(protopirate, receiver_info, ReceiverInfo)
|
||||
ADD_SCENE(protopirate, saved, Saved)
|
||||
ADD_SCENE(protopirate, saved_info, SavedInfo)
|
||||
#ifdef ENABLE_EMULATE_FEATURE
|
||||
ADD_SCENE(protopirate, emulate, Emulate)
|
||||
#endif
|
||||
#ifdef ENABLE_TIMING_TUNER_SCENE
|
||||
ADD_SCENE(protopirate, timing_tuner, TimingTuner)
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// scenes/protopirate_scene_emulate.c
|
||||
#include "../protopirate_app_i.h"
|
||||
#ifdef ENABLE_EMULATE_FEATURE
|
||||
#include "../helpers/protopirate_storage.h"
|
||||
#include "../protocols/protocol_items.h"
|
||||
|
||||
@@ -735,3 +736,4 @@ void protopirate_scene_emulate_on_exit(void* context) {
|
||||
view_set_input_callback(app->view_about, NULL);
|
||||
view_set_context(app->view_about, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user