mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-01 10:21:59 +00:00
fix: review pass - storage unmount timeout, nav dial animates, dial text room, nearby name width, Simpson Enter with another key, GPS chip
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
e03fa7c084
commit
2ae55e97ac
@@ -67,6 +67,12 @@ uint8_t SimpsonKeypad::poll() {
|
||||
_enter_long_sent = false;
|
||||
return SIMPSON_KEY_NONE;
|
||||
}
|
||||
if (key != SIMPSON_KEY_ENTER && _last_key == SIMPSON_KEY_ENTER && !_enter_long_sent) {
|
||||
// Another key arrived with Enter still down: the Enter counts now, the key on the next poll.
|
||||
_last_key = SIMPSON_KEY_NONE;
|
||||
_enter_pressed_at = 0;
|
||||
return SIMPSON_KEY_ENTER;
|
||||
}
|
||||
if (key == SIMPSON_KEY_ENTER && _last_key == SIMPSON_KEY_ENTER) {
|
||||
if (!_enter_long_sent && millis() - _enter_pressed_at >= SIMPSON_LONG_PRESS_MS) {
|
||||
_enter_long_sent = true;
|
||||
|
||||
Reference in New Issue
Block a user