From e604db49d644ee2b978b4c937afe56cfdf0891e8 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Sat, 6 Mar 2021 16:32:10 +0100 Subject: [PATCH] maintenance mode (fix display logic) --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 757d546c..35ec4e06 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -482,6 +482,8 @@ void setup() { // display interrupt #ifdef HAS_DISPLAY + dp_clear(); + dp_contrast(DISPLAYCONTRAST); // https://techtutorialsx.com/2017/10/07/esp32-arduino-timer-interrupts/ // prescaler 80 -> divides 80 MHz CPU freq to 1 MHz, timer 0, count up displayIRQ = timerBegin(0, 80, true); @@ -540,8 +542,6 @@ void setup() { // set runmode to normal RTC_runmode = RUNMODE_NORMAL; - dp_clear(); - dp_contrast(DISPLAYCONTRAST); vTaskDelete(NULL);