Skip to content

Commit

Permalink
Custom modulations load
Browse files Browse the repository at this point in the history
by Willy-JL
  • Loading branch information
xMasterX committed Mar 10, 2024
1 parent 2ea0fac commit 21b2c18
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions helpers/subrem_presets.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,17 @@ SubRemLoadSubState subrem_sub_preset_load(
}

if(!strcmp(furi_string_get_cstr(temp_str), "CUSTOM")) {
FURI_LOG_E(TAG, "CUSTOM preset is not supported");
break;
//TODO Does this work properly?
//delete preset if it already exists
subghz_setting_delete_custom_preset(setting, furi_string_get_cstr(temp_str));
//load custom preset from file
if(!subghz_setting_load_custom_preset(
setting, furi_string_get_cstr(temp_str), fff_data_file)) {
FURI_LOG_E(TAG, "Missing Custom preset");
break;
}
// FURI_LOG_E(TAG, "CUSTOM preset is not supported");
// break;
// TODO Custom preset loading logic if need
// sub_preset->freq_preset.preset_index =
// subghz_setting_get_inx_preset_by_name(setting, furi_string_get_cstr(temp_str));
Expand Down

0 comments on commit 21b2c18

Please sign in to comment.