|
|
@@ -12,6 +12,7 @@ void quac_set_default_settings(App* app) {
|
|
|
app->settings.show_headers = true;
|
|
|
app->settings.rfid_duration = 2500;
|
|
|
app->settings.nfc_duration = 1000;
|
|
|
+ app->settings.ibutton_duration = 1000;
|
|
|
app->settings.subghz_repeat = 10;
|
|
|
app->settings.subghz_use_ext_antenna = false;
|
|
|
app->settings.ir_use_ext_module = false;
|
|
|
@@ -83,6 +84,12 @@ void quac_load_settings(App* app) {
|
|
|
app->settings.nfc_duration = temp_data32;
|
|
|
}
|
|
|
|
|
|
+ if(!flipper_format_read_uint32(fff_settings, "iButton Duration", &temp_data32, 1)) {
|
|
|
+ FURI_LOG_W(TAG, "SETTINGS: Missing 'iButton Duration'");
|
|
|
+ } else {
|
|
|
+ app->settings.ibutton_duration = temp_data32;
|
|
|
+ }
|
|
|
+
|
|
|
if(!flipper_format_read_uint32(fff_settings, "SubGHz Repeat", &temp_data32, 1)) {
|
|
|
FURI_LOG_W(TAG, "SETTINGS: Missing 'SubGHz Repeat'");
|
|
|
} else {
|
|
|
@@ -158,6 +165,11 @@ void quac_save_settings(App* app) {
|
|
|
FURI_LOG_E(TAG, "SETTINGS: Failed to write 'NFC Duration'");
|
|
|
break;
|
|
|
}
|
|
|
+ if(!flipper_format_write_uint32(
|
|
|
+ fff_settings, "iButton Duration", &app->settings.ibutton_duration, 1)) {
|
|
|
+ FURI_LOG_E(TAG, "SETTINGS: Failed to write 'iButton Duration'");
|
|
|
+ break;
|
|
|
+ }
|
|
|
if(!flipper_format_write_uint32(
|
|
|
fff_settings, "SubGHz Repeat", &app->settings.subghz_repeat, 1)) {
|
|
|
FURI_LOG_E(TAG, "SETTINGS: Failed to write 'SubGHz Repeat'");
|