Skip to content

Commit

Permalink
Fix compile warning, esp32-hal-i2c.c (#2434)
Browse files Browse the repository at this point in the history
@Tread-Qualitrol discovered this error.
  • Loading branch information
stickbreaker authored and me-no-dev committed Feb 14, 2019
1 parent 8806acf commit 8ec7640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp32/esp32-hal-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 8ec7640

Please sign in to comment.