diff --git a/src/config.hpp b/src/config.hpp index f4aaf85..3984d65 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -5,7 +5,7 @@ * Variants * ***********************************************/ // @note You can use -D flag to define the variant and comment out the line below -#define AC_TYPE AC_TYPE_M3M4M5M6 +#define AC_TYPE AC_TYPE_M1M2 /*********************************************** * Pin Definitions * diff --git a/src/display.cpp b/src/display.cpp index 73ac3c6..21f91db 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -158,6 +158,9 @@ void CUDDisplay::begin(cud_display_cards_t cards) // Initialize the display ESP_LOGV("CUD Display", "Initializing display"); + this->sendStopBytes(); + this->reset(); + vTaskDelay(1000 / portTICK_PERIOD_MS); this->display_init(); } @@ -231,7 +234,6 @@ void CUDDisplay::display_init() { // Perform a reset on the display ESP_LOGV("CUD Display", "Resetting display"); - this->reset(); vTaskDelay(1000 / portTICK_PERIOD_MS); // Set the display to the main screen ESP_LOGV("CUD Display", "Setting display to main screen");