mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-04 04:40:50 +00:00
Merge branch 'master' into 2.7-MiscFixes-Week1
This commit is contained in:
commit
574cbe55c0
@ -1289,12 +1289,13 @@ int Screen::handleInputEvent(const InputEvent *event)
|
|||||||
config.position.gps_mode = meshtastic_Config_PositionConfig_GpsMode_ENABLED;
|
config.position.gps_mode = meshtastic_Config_PositionConfig_GpsMode_ENABLED;
|
||||||
playGPSEnableBeep();
|
playGPSEnableBeep();
|
||||||
gps->enable();
|
gps->enable();
|
||||||
|
service->reloadConfig(SEGMENT_CONFIG);
|
||||||
} else if (selected == 2) {
|
} else if (selected == 2) {
|
||||||
config.position.gps_mode = meshtastic_Config_PositionConfig_GpsMode_DISABLED;
|
config.position.gps_mode = meshtastic_Config_PositionConfig_GpsMode_DISABLED;
|
||||||
playGPSDisableBeep();
|
playGPSDisableBeep();
|
||||||
gps->disable();
|
gps->disable();
|
||||||
}
|
|
||||||
service->reloadConfig(SEGMENT_CONFIG);
|
service->reloadConfig(SEGMENT_CONFIG);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
config.position.gps_mode == meshtastic_Config_PositionConfig_GpsMode_ENABLED ? 1
|
config.position.gps_mode == meshtastic_Config_PositionConfig_GpsMode_ENABLED ? 1
|
||||||
: 2); // set inital selection
|
: 2); // set inital selection
|
||||||
@ -1479,9 +1480,10 @@ void Screen::TZPicker()
|
|||||||
} else if (selected == 16) { // NZ
|
} else if (selected == 16) { // NZ
|
||||||
strncpy(config.device.tzdef, "NZST-12NZDT,M9.5.0,M4.1.0/3", sizeof(config.device.tzdef));
|
strncpy(config.device.tzdef, "NZST-12NZDT,M9.5.0,M4.1.0/3", sizeof(config.device.tzdef));
|
||||||
}
|
}
|
||||||
|
if (selected != 0) {
|
||||||
setenv("TZ", config.device.tzdef, 1);
|
setenv("TZ", config.device.tzdef, 1);
|
||||||
service->reloadConfig(SEGMENT_CONFIG);
|
service->reloadConfig(SEGMENT_CONFIG);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,6 +32,6 @@ class UpDownInterruptBase : public Observable<const InputEvent *>, public concur
|
|||||||
unsigned long lastUpKeyTime = 0;
|
unsigned long lastUpKeyTime = 0;
|
||||||
unsigned long lastDownKeyTime = 0;
|
unsigned long lastDownKeyTime = 0;
|
||||||
unsigned long lastPressKeyTime = 0;
|
unsigned long lastPressKeyTime = 0;
|
||||||
unsigned long updownDebounceMs;
|
unsigned long updownDebounceMs = 50;
|
||||||
const unsigned long pressDebounceMs = 200;
|
const unsigned long pressDebounceMs = 200;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user