Skip to content

Commit 8ec7640

Browse files
stickbreakerme-no-dev
authored andcommitted
Fix compile warning, esp32-hal-i2c.c (#2434)
@Tread-Qualitrol discovered this error.
1 parent 8806acf commit 8ec7640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-i2c.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static void IRAM_ATTR i2cTriggerDumps(i2c_t * i2c, uint8_t trigger, const char l
451451
static void i2cApbChangeCallback(void * arg, apb_change_ev_t ev_type, uint32_t old_apb, uint32_t new_apb){
452452
i2c_t* i2c = (i2c_t*) arg; // recover data
453453
if(i2c == NULL) { // point to peripheral control block does not exits
454-
return false;
454+
return;
455455
}
456456
uint32_t oldFreq=0;
457457
switch(ev_type){

0 commit comments

Comments
 (0)