update screen after sending signal

in received signals scene
This commit is contained in:
Eng1n33r
2022-07-11 23:26:39 +03:00
parent 532082f35e
commit 97ec06c1f3

View File

@@ -38,10 +38,8 @@ static bool subghz_scene_receiver_info_update_parser(void* context) {
return false; return false;
} }
void subghz_scene_receiver_info_on_enter(void* context) { void subghz_scene_receiver_info_draw_widget(SubGhz* subghz) {
SubGhz* subghz = context;
DOLPHIN_DEED(DolphinDeedSubGhzReceiverInfo);
if(subghz_scene_receiver_info_update_parser(subghz)) { if(subghz_scene_receiver_info_update_parser(subghz)) {
string_t frequency_str; string_t frequency_str;
string_t modulation_str; string_t modulation_str;
@@ -106,6 +104,13 @@ void subghz_scene_receiver_info_on_enter(void* context) {
view_dispatcher_switch_to_view(subghz->view_dispatcher, SubGhzViewIdWidget); view_dispatcher_switch_to_view(subghz->view_dispatcher, SubGhzViewIdWidget);
} }
void subghz_scene_receiver_info_on_enter(void* context) {
SubGhz* subghz = context;
DOLPHIN_DEED(DolphinDeedSubGhzReceiverInfo);
subghz_scene_receiver_info_draw_widget(subghz);
}
bool subghz_scene_receiver_info_on_event(void* context, SceneManagerEvent event) { bool subghz_scene_receiver_info_on_event(void* context, SceneManagerEvent event) {
SubGhz* subghz = context; SubGhz* subghz = context;
if(event.type == SceneManagerEventTypeCustom) { if(event.type == SceneManagerEventTypeCustom) {
@@ -135,6 +140,10 @@ bool subghz_scene_receiver_info_on_event(void* context, SceneManagerEvent event)
} else if(event.event == SubGhzCustomEventSceneReceiverInfoTxStop) { } else if(event.event == SubGhzCustomEventSceneReceiverInfoTxStop) {
//CC1101 Stop Tx -> Start RX //CC1101 Stop Tx -> Start RX
subghz->state_notifications = SubGhzNotificationStateIDLE; subghz->state_notifications = SubGhzNotificationStateIDLE;
widget_reset(subghz->widget);
subghz_scene_receiver_info_draw_widget(subghz);
if(subghz->txrx->txrx_state == SubGhzTxRxStateTx) { if(subghz->txrx->txrx_state == SubGhzTxRxStateTx) {
subghz_tx_stop(subghz); subghz_tx_stop(subghz);
} }