mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 05:08:35 -07:00
update screen after sending signal
in received signals scene
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user