SubGHz: Fix notifications

* Emit error notification on memory full
* Set IDLE notification (led off) at Info scene if Memory Full
* Enable Rx notification and Rx after deletion of item after "Memory full" state
This commit is contained in:
Nikita Vostokov
2023-05-13 01:21:34 +03:00
parent 73d4fc6d2f
commit 253478dba5
2 changed files with 14 additions and 3 deletions

View File

@@ -109,6 +109,10 @@ void subghz_scene_receiver_info_on_enter(void* context) {
subghz_custom_btns_reset();
subghz_scene_receiver_info_draw_widget(subghz);
if(!subghz_history_get_text_space_left(subghz->history, NULL)) {
subghz->state_notifications = SubGhzNotificationStateRx;
}
}
bool subghz_scene_receiver_info_on_event(void* context, SceneManagerEvent event) {
@@ -142,7 +146,9 @@ bool subghz_scene_receiver_info_on_event(void* context, SceneManagerEvent event)
subghz_txrx_rx_start(subghz->txrx);
subghz_txrx_hopper_unpause(subghz->txrx);
subghz->state_notifications = SubGhzNotificationStateRx;
if(!subghz_history_get_text_space_left(subghz->history, NULL)) {
subghz->state_notifications = SubGhzNotificationStateRx;
}
}
return true;
} else if(event.event == SubGhzCustomEventSceneReceiverInfoSave) {