mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 03:48:35 -07:00
formatted
This commit is contained in:
@@ -401,6 +401,6 @@ int32_t clock_app(void* p) {
|
|||||||
view_port_free(view_port);
|
view_port_free(view_port);
|
||||||
furi_message_queue_free(event_queue);
|
furi_message_queue_free(event_queue);
|
||||||
delete_mutex(&state_mutex);
|
delete_mutex(&state_mutex);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,6 @@ static bool subghz_scene_receiver_info_update_parser(void* context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void subghz_scene_receiver_info_draw_widget(SubGhz* subghz) {
|
void subghz_scene_receiver_info_draw_widget(SubGhz* subghz) {
|
||||||
|
|
||||||
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;
|
||||||
@@ -146,10 +145,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);
|
widget_reset(subghz->widget);
|
||||||
subghz_scene_receiver_info_draw_widget(subghz);
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -958,7 +958,8 @@ int32_t unirfremix_app(void* p) {
|
|||||||
//input detect loop start
|
//input detect loop start
|
||||||
InputEvent input;
|
InputEvent input;
|
||||||
while(1) {
|
while(1) {
|
||||||
furi_check(furi_message_queue_get(app->input_queue, &input, FuriWaitForever) == FuriStatusOk);
|
furi_check(
|
||||||
|
furi_message_queue_get(app->input_queue, &input, FuriWaitForever) == FuriStatusOk);
|
||||||
FURI_LOG_I(
|
FURI_LOG_I(
|
||||||
TAG,
|
TAG,
|
||||||
"key: %s type: %s",
|
"key: %s type: %s",
|
||||||
@@ -1093,7 +1094,8 @@ int32_t unirfremix_app(void* p) {
|
|||||||
|
|
||||||
InputEvent input;
|
InputEvent input;
|
||||||
while(1) {
|
while(1) {
|
||||||
furi_check(furi_message_queue_get(app->input_queue, &input, FuriWaitForever) == FuriStatusOk);
|
furi_check(
|
||||||
|
furi_message_queue_get(app->input_queue, &input, FuriWaitForever) == FuriStatusOk);
|
||||||
FURI_LOG_I(
|
FURI_LOG_I(
|
||||||
TAG,
|
TAG,
|
||||||
"key: %s type: %s",
|
"key: %s type: %s",
|
||||||
|
|||||||
Reference in New Issue
Block a user