mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
prevent startup delay from display if i2c is unresponsive - release
This commit is contained in:
@@ -341,7 +341,10 @@ void register_default_nvs(){
|
|||||||
|
|
||||||
ESP_LOGD(TAG,"Done setting default values in nvs.");
|
ESP_LOGD(TAG,"Done setting default values in nvs.");
|
||||||
}
|
}
|
||||||
|
void displayInitCallback(TimerHandle_t pxTimer){
|
||||||
|
ESP_LOGD(TAG,"Initializing display");
|
||||||
|
display_init("SqueezeESP32");
|
||||||
|
}
|
||||||
void app_main()
|
void app_main()
|
||||||
{
|
{
|
||||||
char * fwurl = NULL;
|
char * fwurl = NULL;
|
||||||
@@ -364,10 +367,10 @@ void app_main()
|
|||||||
|
|
||||||
ESP_LOGD(TAG,"Configuring services");
|
ESP_LOGD(TAG,"Configuring services");
|
||||||
services_init();
|
services_init();
|
||||||
|
// initialize display in a timer thread to prevent locking up
|
||||||
ESP_LOGD(TAG,"Initializing display");
|
// the main init sequence
|
||||||
display_init("SqueezeESP32");
|
TimerHandle_t display_init = xTimerCreate( "DisplInit", 100,pdFALSE,NULL,displayInitCallback);
|
||||||
|
xTimerStart(display_init, portMAX_DELAY);
|
||||||
#if !RECOVERY_APPLICATION
|
#if !RECOVERY_APPLICATION
|
||||||
ESP_LOGI(TAG,"Checking if certificates need to be updated");
|
ESP_LOGI(TAG,"Checking if certificates need to be updated");
|
||||||
update_certificates();
|
update_certificates();
|
||||||
|
|||||||
Reference in New Issue
Block a user