Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Custom modulations in subghz remote (?) #536
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Feb 14, 2024
1 parent 25713dc commit 8375aad
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions applications/system/subghz_remote/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 FL-3551: add Custom_preset_module
//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 8375aad

Please sign in to comment.