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 }