@@ -159,6 +159,8 @@ void FullScreenDialog::runForever()
|
|||||||
running = true;
|
running = true;
|
||||||
|
|
||||||
while (running) {
|
while (running) {
|
||||||
|
resetBacklightTimeout();
|
||||||
|
|
||||||
auto check = pwrCheck();
|
auto check = pwrCheck();
|
||||||
if (check == e_power_off) {
|
if (check == e_power_off) {
|
||||||
boardOff();
|
boardOff();
|
||||||
@@ -187,6 +189,8 @@ void FullScreenDialog::runForeverNoPwrCheck()
|
|||||||
running = true;
|
running = true;
|
||||||
|
|
||||||
while (running) {
|
while (running) {
|
||||||
|
resetBacklightTimeout();
|
||||||
|
|
||||||
checkBacklight();
|
checkBacklight();
|
||||||
WDG_RESET();
|
WDG_RESET();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user