Skip to content

Commit

Permalink
fix compile error for ESP-IDF ( #106 )
Browse files Browse the repository at this point in the history
  • Loading branch information
lovyan03 committed Nov 5, 2024
1 parent 10d0fdc commit 8216492
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/lgfx/v1/platforms/esp32/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,17 +688,10 @@ namespace lgfx
#define I2C_ACK_ERR_INT_RAW_M I2C_NACK_INT_RAW_M
#endif

#if __has_include(<soc/i2c_periph.h>)
static periph_module_t getPeriphModule(int num)
{
return i2c_periph_signal[num].module;
}
#else
static periph_module_t getPeriphModule(int num)
{
return num == 0 ? PERIPH_I2C0_MODULE : PERIPH_I2C1_MODULE;
}
#endif

static i2c_dev_t* getDev(int num)
{
Expand Down

0 comments on commit 8216492

Please sign in to comment.