Skip to content

Commit

Permalink
chore(esp32s3_board_i2c): suppress warning
Browse files Browse the repository at this point in the history
If only I2C1 is configured but not I2C0, gcc is giving a warning,
so we suppress it.
  • Loading branch information
casaroli authored and acassis committed Oct 12, 2023
1 parent cef8c59 commit e99966e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boards/xtensa/esp32s3/common/src/esp32s3_board_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ int board_i2c_init(void)
ret = i2c_driver_init(ESP32S3_I2C1);
#endif

#ifdef CONFIG_ESP32S3_I2C0
done:
#endif
return ret;
}

0 comments on commit e99966e

Please sign in to comment.