From 8ec76405b92ada0a5b4c365dbcd614161ff518be Mon Sep 17 00:00:00 2001 From: chuck todd Date: Thu, 14 Feb 2019 05:09:05 -0700 Subject: [PATCH] Fix compile warning, esp32-hal-i2c.c (#2434) @tread-Qualitrol discovered this error. --- cores/esp32/esp32-hal-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-i2c.c b/cores/esp32/esp32-hal-i2c.c index 780020f0215..efb4aefa51a 100644 --- a/cores/esp32/esp32-hal-i2c.c +++ b/cores/esp32/esp32-hal-i2c.c @@ -451,7 +451,7 @@ static void IRAM_ATTR i2cTriggerDumps(i2c_t * i2c, uint8_t trigger, const char l static void i2cApbChangeCallback(void * arg, apb_change_ev_t ev_type, uint32_t old_apb, uint32_t new_apb){ i2c_t* i2c = (i2c_t*) arg; // recover data if(i2c == NULL) { // point to peripheral control block does not exits - return false; + return; } uint32_t oldFreq=0; switch(ev_type){