mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 12:42:30 +04:00
subghz use long press to exit transmitter [ci skip]
to avoid unwanted 2 buttons hold condition holding arrow button and exit causes default button change, which is stays as hidden feature but this change makes it harder to call it accidentally
This commit is contained in:
@@ -127,7 +127,8 @@ bool subghz_view_transmitter_input(InputEvent* event, void* context) {
|
|||||||
SubGhzViewTransmitter* subghz_transmitter = context;
|
SubGhzViewTransmitter* subghz_transmitter = context;
|
||||||
bool can_be_sent = false;
|
bool can_be_sent = false;
|
||||||
|
|
||||||
if(event->key == InputKeyBack && event->type == InputTypeShort) {
|
if(event->key == InputKeyBack && event->type == InputTypeLong) {
|
||||||
|
// Reset view model
|
||||||
with_view_model(
|
with_view_model(
|
||||||
subghz_transmitter->view,
|
subghz_transmitter->view,
|
||||||
SubGhzViewTransmitterModel * model,
|
SubGhzViewTransmitterModel * model,
|
||||||
|
|||||||
Reference in New Issue
Block a user