Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
lovyan03 committed Nov 5, 2024
1 parent 33ce909 commit 9fa7b36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lgfx/v1/platforms/esp32/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,11 @@ namespace lgfx

static periph_module_t getPeriphModule(int num)
{
#if SOC_I2C_NUM == 1 || defined CONFIG_IDF_TARGET_ESP32C6
return &PERIPH_I2C0_MODULE;
#else
return num == 0 ? PERIPH_I2C0_MODULE : PERIPH_I2C1_MODULE;
#endif
}

static i2c_dev_t* getDev(int num)
Expand Down

0 comments on commit 9fa7b36

Please sign in to comment.