mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-03 02:36:11 +00:00
bypass auto-shutdown delay for e-ink devices
This commit is contained in:
@@ -840,9 +840,7 @@ void UITask::loop() {
|
|||||||
_display->drawTextCentered(_display->width() / 2, 20, "Low Battery.");
|
_display->drawTextCentered(_display->width() / 2, 20, "Low Battery.");
|
||||||
_display->drawTextCentered(_display->width() / 2, 40, "Shutting Down!");
|
_display->drawTextCentered(_display->width() / 2, 40, "Shutting Down!");
|
||||||
_display->endFrame();
|
_display->endFrame();
|
||||||
#if !defined(THINKNODE_M1) && !defined(LILYGO_TECHO) // TODO: refactor eink variants to use EINK_DISPLAY macros to gate this properly
|
if (_display->isEink() == false) { delay(3000); }
|
||||||
delay(3000);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
shutdown();
|
shutdown();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -735,7 +735,7 @@ void UITask::loop() {
|
|||||||
_display->setTextSize(1);
|
_display->setTextSize(1);
|
||||||
_display->drawTextCentered(_display->width() / 2, 18, "Shutting down!");
|
_display->drawTextCentered(_display->width() / 2, 18, "Shutting down!");
|
||||||
_display->endFrame();
|
_display->endFrame();
|
||||||
delay(3000); // TODO: refactor eink variants to use EINK_DISPLAY macros to gate this properly
|
if (_display->isEink() == false) { delay(3000); }
|
||||||
}
|
}
|
||||||
shutdown();
|
shutdown();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user