mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Added saving DetectRAW settings, trying to write files on SD instead of memory
This commit is contained in:
@@ -4,9 +4,14 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <storage/storage.h>
|
||||
#include <lib/subghz/protocols/base.h>
|
||||
|
||||
#define DETECT_RAW_FALSE SubGhzProtocolFlag_Decodable
|
||||
#define DETECT_RAW_TRUE SubGhzProtocolFlag_Decodable | SubGhzProtocolFlag_RAW
|
||||
|
||||
typedef struct {
|
||||
uint32_t frequency;
|
||||
uint32_t detect_raw;
|
||||
int32_t preset;
|
||||
} SubGhzLastSettings;
|
||||
|
||||
@@ -16,4 +21,6 @@ void subghz_last_settings_free(SubGhzLastSettings* instance);
|
||||
|
||||
void subghz_last_settings_load(SubGhzLastSettings* instance, size_t preset_count);
|
||||
|
||||
bool subghz_last_settings_save(SubGhzLastSettings* instance);
|
||||
bool subghz_last_settings_save(SubGhzLastSettings* instance);
|
||||
|
||||
void subghz_last_settings_set_detect_raw_values(void* context);
|
||||
Reference in New Issue
Block a user