From d0a7389bf9a2a9cf6a7aa30b953ab89dce9fced1 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sat, 30 Sep 2023 14:28:21 +0700 Subject: [PATCH] Update espmega_iot_core.cpp --- src/espmega_iot_core.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/espmega_iot_core.cpp b/src/espmega_iot_core.cpp index 6bf75dd..5141eb1 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -131,6 +131,12 @@ void setup() lcd_send_stop_bit(); lcd_init(); lcd_begin(); + #ifdef ENABLE_EXTERNAL_LCD + Serial2.print("rest"); + Serial2.write(0xFF); + Serial2.write(0xFF); + Serial2.write(0xFF); + #endif lcd_send_command("boot_state.txt=\"Core Initializing . . .\""); Serial.println("Initializing Infrared . . ."); lcd_send_command("boot_state.txt=\"Infrared Initializing . . .\""); @@ -147,12 +153,6 @@ void setup() Serial.println("Jumping to User Code."); user_init(); lcd_send_command("page dashboard"); - #ifdef ENABLE_EXTERNAL_LCD - Serial2.print("rest"); - Serial2.write(0xFF); - Serial2.write(0xFF); - Serial2.write(0xFF); - #endif }