Update subghz_scene_set_type.c

try this
This commit is contained in:
r3df0xx 2022-04-24 00:11:46 +03:00
parent 35a1712ba3
commit a36c1d70e6

View file

@ -160,6 +160,7 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
switch(event.event) {
case SubmenuIndexFaacSLH:
scene_manager_next_scene(subghz->scene_manager, SubGhzSceneSetFix);
if(scene_manager_has_previous_scene(subghz->scene_manager, SubGhzSceneSetSeed)) {
uint32_t fix_part = subghz->txrx->secure_data->fix[0] << 24 | subghz->txrx->secure_data->fix[1] << 16 |
subghz->txrx->secure_data->fix[2] << 8 | subghz->txrx->secure_data->fix[3];
FURI_LOG_I(TAG, "fix: %8X", fix_part);
@ -191,6 +192,7 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
subghz->error_str, "Function requires\nan SD card with\nfresh databases.");
scene_manager_next_scene(subghz->scene_manager, SubGhzSceneShowError);
}
}
break;
case SubmenuIndexPricenton:
key = (key & 0x00FFFFF0) | 0x4; //btn 0x1, 0x2, 0x4, 0x8