From d95d1cd3db56b4a81c7aa4c468491739fe453a1f Mon Sep 17 00:00:00 2001 From: Philippe G Date: Tue, 1 Sep 2020 13:41:17 -0700 Subject: [PATCH] green led fix + i2c timeout - release --- components/display/core/ifaces/default_if_i2c.c | 2 +- main/esp_app_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/display/core/ifaces/default_if_i2c.c b/components/display/core/ifaces/default_if_i2c.c index d88ff679..28fd2347 100644 --- a/components/display/core/ifaces/default_if_i2c.c +++ b/components/display/core/ifaces/default_if_i2c.c @@ -35,7 +35,7 @@ static bool I2CDefaultWriteData( struct GDS_Device* Device, const uint8_t* Data, bool GDS_I2CInit( int PortNumber, int SDA, int SCL, int Speed ) { I2CPortNumber = PortNumber; - I2CWait = pdMS_TO_TICKS( Speed ? Speed / 4000 : 100 ); + I2CWait = pdMS_TO_TICKS( Speed ? (250 * 250000) / Speed : 250 ); if (SDA != -1 && SCL != -1) { i2c_config_t Config = { 0 }; diff --git a/main/esp_app_main.c b/main/esp_app_main.c index 39bfbf0b..bc05fa0c 100644 --- a/main/esp_app_main.c +++ b/main/esp_app_main.c @@ -413,7 +413,7 @@ void app_main() /* start the wifi manager */ ESP_LOGD(TAG,"Blinking led"); - led_blink(LED_GREEN, 250, 250); + led_blink_pushed(LED_GREEN, 250, 250); if(bypass_wifi_manager){ ESP_LOGW(TAG,"\n\nwifi manager is disabled. Please use wifi commands to connect to your wifi access point.\n\n");