mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-11 21:52:28 +00:00
Fix custom button counter bug
This commit is contained in:
parent
098d6944c4
commit
f676072e15
1 changed files with 2 additions and 0 deletions
|
@ -93,6 +93,7 @@ bool subghz_scene_transmitter_on_event(void* context, SceneManagerEvent event) {
|
|||
if(keeloq_get_custom_btn() != 0) {
|
||||
keeloq_set_btn(0);
|
||||
alutech_set_btn(0);
|
||||
furi_hal_subghz_set_rolling_counter_mult(0);
|
||||
// Calling restore!
|
||||
if(subghz->txrx->txrx_state == SubGhzTxRxStateRx) {
|
||||
subghz_rx_end(subghz);
|
||||
|
@ -105,6 +106,7 @@ bool subghz_scene_transmitter_on_event(void* context, SceneManagerEvent event) {
|
|||
}
|
||||
subghz_tx_stop(subghz);
|
||||
subghz_sleep(subghz);
|
||||
furi_hal_subghz_set_rolling_counter_mult(1);
|
||||
}
|
||||
return true;
|
||||
} else if(event.event == SubGhzCustomEventViewTransmitterBack) {
|
||||
|
|
Loading…
Reference in a new issue