mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-30 15:37:33 +03:00
remove unnecessary scene switch
This commit is contained in:
parent
3531caaa0b
commit
bc93de0f03
@ -81,11 +81,7 @@ bool subghz_scene_transmitter_on_event(void* context, SceneManagerEvent event) {
|
||||
uint8_t tmp_counter = furi_hal_subghz_get_rolling_counter_mult();
|
||||
furi_hal_subghz_set_rolling_counter_mult(0);
|
||||
// Calling restore!
|
||||
if(!subghz_tx_start(subghz, subghz_txrx_get_fff_data(subghz->txrx))) {
|
||||
scene_manager_next_scene(
|
||||
subghz->scene_manager, SubGhzSceneShowOnlyRx); //TODO Is this necessary?
|
||||
}
|
||||
|
||||
subghz_tx_start(subghz, subghz_txrx_get_fff_data(subghz->txrx));
|
||||
subghz_txrx_stop(subghz->txrx);
|
||||
furi_hal_subghz_set_rolling_counter_mult(tmp_counter);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user