Update some apps to close short press --nobuild

long live the moble app for not handling long presses :D
This commit is contained in:
Sil333033
2023-10-27 20:39:35 +02:00
parent 078cb0381e
commit eedbcde4bc
4 changed files with 6 additions and 3 deletions

View File

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

View File

@@ -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) {

View File

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

View File

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