Merge pull request #45 from pmow/fix/cardkb-during-refresh

fix(ui-new): keep CardKB key presses during an e-ink refresh
This commit is contained in:
Jakub
2026-10-10 10:20:03 +02:00
committed by GitHub
3 changed files with 138 additions and 7 deletions
@@ -233,7 +233,7 @@ private:
// Sensors: every reading but the battery (above) and the position (GPS).
if (!_lpp_at || millis() - _lpp_at > 5000) { // both passes (measure, draw) read one query
_lpp.reset();
sensors.querySensors(0xFF, _lpp);
{ CardKBBusLock bus_lock; sensors.querySensors(0xFF, _lpp); } // shares the CardKB's bus
_lpp_at = millis() | 1;
}
static const struct { uint8_t type; const char* name; } NAMES[] = {