mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 12:51:22 +04:00
SubGhz: Fix RPC status for ButtonRelease event (#3838)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -57,7 +57,8 @@ bool subghz_scene_rpc_on_event(void* context, SceneManagerEvent event) {
|
|||||||
default: //if(SubGhzTxRxStartTxStateOk)
|
default: //if(SubGhzTxRxStartTxStateOk)
|
||||||
result = true;
|
result = true;
|
||||||
subghz_blink_start(subghz);
|
subghz_blink_start(subghz);
|
||||||
state = SubGhzRpcStateTx;
|
scene_manager_set_scene_state(
|
||||||
|
subghz->scene_manager, SubGhzSceneRpc, SubGhzRpcStateTx);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -69,7 +70,8 @@ bool subghz_scene_rpc_on_event(void* context, SceneManagerEvent event) {
|
|||||||
subghz_blink_stop(subghz);
|
subghz_blink_stop(subghz);
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
state = SubGhzRpcStateIdle;
|
scene_manager_set_scene_state(
|
||||||
|
subghz->scene_manager, SubGhzSceneRpc, SubGhzRpcStateIdle);
|
||||||
rpc_system_app_confirm(subghz->rpc_ctx, result);
|
rpc_system_app_confirm(subghz->rpc_ctx, result);
|
||||||
} else if(event.event == SubGhzCustomEventSceneRpcLoad) {
|
} else if(event.event == SubGhzCustomEventSceneRpcLoad) {
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user