remove unnecessary scene switch

This commit is contained in:
MX 2023-05-11 00:01:28 +03:00
parent 3531caaa0b
commit bc93de0f03
No known key found for this signature in database
GPG Key ID: 7CCC66B7DBDD1C83

View File

@ -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);
}