Skip to content

Commit

Permalink
Update common.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tobozo authored Jul 26, 2024
1 parent b261c62 commit 18bc276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lgfx/v1/platforms/esp32/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ namespace lgfx

static i2c_dev_t* getDev(int num)
{
#if SOC_I2C_NUM == 1
#if SOC_I2C_NUM == 1 || defined CONFIG_IDF_TARGET_ESP32C6
return &I2C0;
#else
return num == 0 ? &I2C0 : &I2C1;
Expand Down

0 comments on commit 18bc276

Please sign in to comment.