mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-01 02:11:57 +00:00
fix(simpson): PR #53 follow-up - LF endings, no MESHCORE_VERSION, a long Enter wakes the screen first
The keypad files came back with CRLF endings; MESHCORE_VERSION is the MeshCore base on the splash (1.18.0), not the Solo version, which comes from the tag; ENV_INCLUDE_GPS is already set by the ProMicro base. A long Enter with the screen off acted on the dark screen: it now only wakes it, like every other key, and restarts the screen-off timer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1097,17 +1097,17 @@ void UITask::pollSimpsonKeypad() {
|
||||
}
|
||||
|
||||
void UITask::handleSimpsonKeypadKey(uint8_t key) {
|
||||
if (key == SIMPSON_KEY_ENTER_LONG) {
|
||||
if (_locked && !_unlock_kb) return;
|
||||
enqueueKey(handleLongPress(KEY_ENTER));
|
||||
return;
|
||||
}
|
||||
|
||||
// A key that only woke the display does nothing else, a long Enter too.
|
||||
if (checkDisplayOn(KEY_ENTER) == 0 || (_locked && !_unlock_kb)) return;
|
||||
|
||||
const uint32_t auto_off = autoOffMillis();
|
||||
if (auto_off > 0) _auto_off = millis() + auto_off;
|
||||
|
||||
if (key == SIMPSON_KEY_ENTER_LONG) {
|
||||
enqueueKey(handleLongPress(KEY_ENTER));
|
||||
return;
|
||||
}
|
||||
|
||||
if (key == SIMPSON_KEY_MODE_CHANGED) {
|
||||
static const char* const modes[] = { "Ctl", "abc", "ABC", "123" };
|
||||
_kb.input_mode_hint = modes[_simpson_keypad.mode()];
|
||||
|
||||
Reference in New Issue
Block a user