fix display boot loop
This commit is contained in:
parent
cb0c3ecd8b
commit
1075ec5f99
|
@ -5,7 +5,7 @@
|
||||||
* Variants *
|
* Variants *
|
||||||
***********************************************/
|
***********************************************/
|
||||||
// @note You can use -D flag to define the variant and comment out the line below
|
// @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 *
|
* Pin Definitions *
|
||||||
|
|
|
@ -158,6 +158,9 @@ void CUDDisplay::begin(cud_display_cards_t cards)
|
||||||
|
|
||||||
// Initialize the display
|
// Initialize the display
|
||||||
ESP_LOGV("CUD Display", "Initializing display");
|
ESP_LOGV("CUD Display", "Initializing display");
|
||||||
|
this->sendStopBytes();
|
||||||
|
this->reset();
|
||||||
|
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||||
this->display_init();
|
this->display_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,7 +234,6 @@ void CUDDisplay::display_init()
|
||||||
{
|
{
|
||||||
// Perform a reset on the display
|
// Perform a reset on the display
|
||||||
ESP_LOGV("CUD Display", "Resetting display");
|
ESP_LOGV("CUD Display", "Resetting display");
|
||||||
this->reset();
|
|
||||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||||
// Set the display to the main screen
|
// Set the display to the main screen
|
||||||
ESP_LOGV("CUD Display", "Setting display to main screen");
|
ESP_LOGV("CUD Display", "Setting display to main screen");
|
||||||
|
|
Loading…
Reference in New Issue