Skip to content

Commit

Permalink
Add GFSK to SubGHZ
Browse files Browse the repository at this point in the history
  • Loading branch information
Mik13 committed Aug 2, 2022
1 parent 0b8f373 commit f7c128c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions applications/subghz/subghz_i.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ bool subghz_set_preset(SubGhz* subghz, const char* preset) {
string_set(subghz->txrx->preset->name, "FM238");
} else if(!strcmp(preset, "FuriHalSubGhzPreset2FSKDev476Async")) {
string_set(subghz->txrx->preset->name, "FM476");
} else if(!strcmp(preset, "FuriHalSubGhzPresetGFSK9_99KbAsync")) {
string_set(subghz->txrx->preset->name, "GFSK9");
} else if(!strcmp(preset, "FuriHalSubGhzPresetCustom")) {
string_set(subghz->txrx->preset->name, "CUSTOM");
} else {
Expand Down
5 changes: 5 additions & 0 deletions applications/subghz/subghz_setting.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ static void subghz_setting_load_default_region(
"FM476",
(uint8_t*)furi_hal_subghz_preset_2fsk_dev47_6khz_async_regs,
furi_hal_subghz_preset_2fsk_async_patable);
subghz_setting_load_default_preset(
instance,
"GFSK9",
(uint8_t*)furi_hal_subghz_preset_gfsk_9_99kb_async_regs,
furi_hal_subghz_preset_gfsk_async_patable);
}

// Region check removed
Expand Down
2 changes: 2 additions & 0 deletions lib/subghz/blocks/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ void subghz_block_generic_get_preset_name(const char* preset_name, string_t pres
preset_name_temp = "FuriHalSubGhzPreset2FSKDev238Async";
} else if(!strcmp(preset_name, "FM476")) {
preset_name_temp = "FuriHalSubGhzPreset2FSKDev476Async";
} else if(!strcmp(preset_name, "GFSK9")) {
preset_name_temp = "FuriHalSubGhzPresetGFSK9_99KbAsync";
} else {
preset_name_temp = "FuriHalSubGhzPresetCustom";
}
Expand Down

0 comments on commit f7c128c

Please sign in to comment.