mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-03 04:49:59 -07:00
Update some apps to close short press --nobuild
long live the moble app for not handling long presses :D
This commit is contained in:
@@ -239,7 +239,8 @@ int32_t flipper_geiger_app() {
|
||||
|
||||
if(event_status == FuriStatusOk) {
|
||||
if(event.type == EventTypeInput) {
|
||||
if(event.input.key == InputKeyBack && event.input.type == InputTypeLong) {
|
||||
if(event.input.key == InputKeyBack &&
|
||||
(event.input.type == InputTypeShort || event.input.type == InputTypeLong)) {
|
||||
break;
|
||||
} else if(event.input.key == InputKeyOk && event.input.type == InputTypeLong) {
|
||||
counter = 0;
|
||||
|
||||
1
applications/external/gps_nmea_uart/gps.c
vendored
1
applications/external/gps_nmea_uart/gps.c
vendored
@@ -126,6 +126,7 @@ int32_t gps_app(void* p) {
|
||||
case InputKeyRight:
|
||||
case InputKeyLeft:
|
||||
case InputKeyBack:
|
||||
processing = false;
|
||||
break;
|
||||
case InputKeyOk:
|
||||
if(!gps_uart->backlight_on) {
|
||||
|
||||
@@ -194,7 +194,8 @@ int32_t nrf24channelscanner_main(void* p) {
|
||||
|
||||
if(event.type == EventTypeKey) {
|
||||
szuz = false; //hit any button, so hide welcome screen
|
||||
if(event.input.type == InputTypeLong && event.input.key == InputKeyBack) {
|
||||
if((event.input.type == InputTypeShort || event.input.type == InputTypeLong) &&
|
||||
event.input.key == InputKeyBack) {
|
||||
if(isScanning) {
|
||||
stopNrfScan = true; //if running, stop it.
|
||||
notification_message(notification, &sequence_blink_yellow_100);
|
||||
|
||||
2
applications/external/nrf24sniff/nrfsniff.c
vendored
2
applications/external/nrf24sniff/nrfsniff.c
vendored
@@ -409,7 +409,7 @@ int32_t nrfsniff_app(void* p) {
|
||||
|
||||
break;
|
||||
case InputKeyBack:
|
||||
if(event.input.type == InputTypeLong) processing = false;
|
||||
processing = false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user