pl_text_size_018

This commit is contained in:
e2002
2023-03-08 19:54:11 +03:00
parent ebd6acd3fe
commit 9c1bf08ecc
3 changed files with 7 additions and 3 deletions

View File

@@ -30,6 +30,7 @@ void nextionCore0( void * pvParameters ){
void Nextion::begin(bool dummy) {
_dummyDisplay=dummy;
mode=LOST;
hSerial.begin(NEXTION_BAUD, SERIAL_8N1, NEXTION_RX, NEXTION_TX);
if (!hSerial) {
Serial.println("Invalid HardwareSerial pin configuration, check config");
@@ -459,7 +460,9 @@ void Nextion::swichMode(displayMode_e newmode){
if (newmode == VOL) {
_volDelay = millis();
}
//if (newmode == mode) return;
if (newmode == mode) {
return;
}
mode = newmode;
#ifdef DUMMYDISPLAY
display.mode(newmode);