From 0e6224011984e3074bd0fc39db3b26c48e031a93 Mon Sep 17 00:00:00 2001 From: Wessel Nieboer Date: Sun, 15 Mar 2026 13:09:53 +0100 Subject: [PATCH] Set AUTO_OFF_MILLIS to 0 for E213, E290 --- src/helpers/ui/E213Display.cpp | 5 ++++- src/helpers/ui/E290Display.cpp | 5 ++++- variants/heltec_e213/platformio.ini | 2 ++ variants/heltec_e290/platformio.ini | 2 ++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/helpers/ui/E213Display.cpp b/src/helpers/ui/E213Display.cpp index 5f04e685..814693a0 100644 --- a/src/helpers/ui/E213Display.cpp +++ b/src/helpers/ui/E213Display.cpp @@ -90,7 +90,10 @@ void E213Display::powerOff() { void E213Display::turnOn() { if (!_init) begin(); - else if (!_isOn) powerOn(); + else if (!_isOn) { + powerOn(); + display->fastmodeOn(); // Reinitialize display controller after power was cut + } _isOn = true; } diff --git a/src/helpers/ui/E290Display.cpp b/src/helpers/ui/E290Display.cpp index 529f7909..ef4df05e 100644 --- a/src/helpers/ui/E290Display.cpp +++ b/src/helpers/ui/E290Display.cpp @@ -44,7 +44,10 @@ void E290Display::powerOff() { void E290Display::turnOn() { if (!_init) begin(); - else if (!_isOn) powerOn(); + else if (!_isOn) { + powerOn(); + display.fastmodeOn(); // Reinitialize display controller after power was cut + } _isOn = true; } diff --git a/variants/heltec_e213/platformio.ini b/variants/heltec_e213/platformio.ini index cfa3362f..63bf6d9b 100644 --- a/variants/heltec_e213/platformio.ini +++ b/variants/heltec_e213/platformio.ini @@ -48,6 +48,7 @@ build_flags = -D MAX_CONTACTS=350 -D MAX_GROUP_CHANNELS=40 -D DISPLAY_CLASS=E213Display + -D AUTO_OFF_MILLIS=0 -D BLE_PIN_CODE=123456 ; dynamic, random PIN -D BLE_DEBUG_LOGGING=1 -D OFFLINE_QUEUE_SIZE=256 @@ -69,6 +70,7 @@ build_flags = -D MAX_CONTACTS=350 -D MAX_GROUP_CHANNELS=40 -D DISPLAY_CLASS=E213Display + -D AUTO_OFF_MILLIS=0 -D OFFLINE_QUEUE_SIZE=256 build_src_filter = ${Heltec_E213_base.build_src_filter} + diff --git a/variants/heltec_e290/platformio.ini b/variants/heltec_e290/platformio.ini index d6be213f..2681048c 100644 --- a/variants/heltec_e290/platformio.ini +++ b/variants/heltec_e290/platformio.ini @@ -42,6 +42,7 @@ build_flags = -D MAX_CONTACTS=350 -D MAX_GROUP_CHANNELS=40 -D DISPLAY_CLASS=E290Display + -D AUTO_OFF_MILLIS=0 -D BLE_PIN_CODE=123456 ; dynamic, random PIN -D BLE_DEBUG_LOGGING=1 -D OFFLINE_QUEUE_SIZE=256 @@ -63,6 +64,7 @@ build_flags = -D MAX_CONTACTS=350 -D MAX_GROUP_CHANNELS=40 -D DISPLAY_CLASS=E290Display + -D AUTO_OFF_MILLIS=0 -D BLE_PIN_CODE=123456 ; dynamic, random PIN -D BLE_DEBUG_LOGGING=1 -D OFFLINE_QUEUE_SIZE=256