Set AUTO_OFF_MILLIS to 0 for E213, E290
This commit is contained in:
@@ -90,7 +90,10 @@ void E213Display::powerOff() {
|
|||||||
|
|
||||||
void E213Display::turnOn() {
|
void E213Display::turnOn() {
|
||||||
if (!_init) begin();
|
if (!_init) begin();
|
||||||
else if (!_isOn) powerOn();
|
else if (!_isOn) {
|
||||||
|
powerOn();
|
||||||
|
display->fastmodeOn(); // Reinitialize display controller after power was cut
|
||||||
|
}
|
||||||
_isOn = true;
|
_isOn = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,10 @@ void E290Display::powerOff() {
|
|||||||
|
|
||||||
void E290Display::turnOn() {
|
void E290Display::turnOn() {
|
||||||
if (!_init) begin();
|
if (!_init) begin();
|
||||||
else if (!_isOn) powerOn();
|
else if (!_isOn) {
|
||||||
|
powerOn();
|
||||||
|
display.fastmodeOn(); // Reinitialize display controller after power was cut
|
||||||
|
}
|
||||||
_isOn = true;
|
_isOn = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ build_flags =
|
|||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
-D DISPLAY_CLASS=E213Display
|
-D DISPLAY_CLASS=E213Display
|
||||||
|
-D AUTO_OFF_MILLIS=0
|
||||||
-D BLE_PIN_CODE=123456 ; dynamic, random PIN
|
-D BLE_PIN_CODE=123456 ; dynamic, random PIN
|
||||||
-D BLE_DEBUG_LOGGING=1
|
-D BLE_DEBUG_LOGGING=1
|
||||||
-D OFFLINE_QUEUE_SIZE=256
|
-D OFFLINE_QUEUE_SIZE=256
|
||||||
@@ -69,6 +70,7 @@ build_flags =
|
|||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
-D DISPLAY_CLASS=E213Display
|
-D DISPLAY_CLASS=E213Display
|
||||||
|
-D AUTO_OFF_MILLIS=0
|
||||||
-D OFFLINE_QUEUE_SIZE=256
|
-D OFFLINE_QUEUE_SIZE=256
|
||||||
build_src_filter = ${Heltec_E213_base.build_src_filter}
|
build_src_filter = ${Heltec_E213_base.build_src_filter}
|
||||||
+<helpers/ui/E213Display.cpp>
|
+<helpers/ui/E213Display.cpp>
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ build_flags =
|
|||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
-D DISPLAY_CLASS=E290Display
|
-D DISPLAY_CLASS=E290Display
|
||||||
|
-D AUTO_OFF_MILLIS=0
|
||||||
-D BLE_PIN_CODE=123456 ; dynamic, random PIN
|
-D BLE_PIN_CODE=123456 ; dynamic, random PIN
|
||||||
-D BLE_DEBUG_LOGGING=1
|
-D BLE_DEBUG_LOGGING=1
|
||||||
-D OFFLINE_QUEUE_SIZE=256
|
-D OFFLINE_QUEUE_SIZE=256
|
||||||
@@ -63,6 +64,7 @@ build_flags =
|
|||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
-D DISPLAY_CLASS=E290Display
|
-D DISPLAY_CLASS=E290Display
|
||||||
|
-D AUTO_OFF_MILLIS=0
|
||||||
-D BLE_PIN_CODE=123456 ; dynamic, random PIN
|
-D BLE_PIN_CODE=123456 ; dynamic, random PIN
|
||||||
-D BLE_DEBUG_LOGGING=1
|
-D BLE_DEBUG_LOGGING=1
|
||||||
-D OFFLINE_QUEUE_SIZE=256
|
-D OFFLINE_QUEUE_SIZE=256
|
||||||
|
|||||||
Reference in New Issue
Block a user