A couple of fixes

This commit is contained in:
jpirnay
2026-05-11 23:02:27 +02:00
parent 5b3f1ad200
commit 4982f803a7
7 changed files with 35 additions and 23 deletions
+7 -1
View File
@@ -140,7 +140,13 @@ void TxtReaderActivity::onExit() {
}
void TxtReaderActivity::loop() {
if (inputDrainGuard.shouldDrain(mappedInput)) {
const bool drainActive = inputDrainGuard.shouldDrain(mappedInput);
if (!drainActive && drainWasActive) {
halTiltSensor.clearPendingEvents();
}
drainWasActive = drainActive;
if (drainActive) {
buttonEvents.drain();
return;
}