1
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:
MX
2024-01-05 18:24:09 +03:00
parent e243ca47ba
commit 00d9c60515

View File

@@ -127,7 +127,8 @@ bool subghz_view_transmitter_input(InputEvent* event, void* context) {
SubGhzViewTransmitter* subghz_transmitter = context;
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(
subghz_transmitter->view,
SubGhzViewTransmitterModel * model,