whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.2k stars 221 forks source link

Make the I2C_BUS_DEVICES number configurable trough menuconfig #182

Closed xopxe closed 6 years ago

xopxe commented 6 years ago

The max number of i2c devices is hardwired in components/sys/drivers/i2c.h as

define I2C_BUS_DEVICES 3

This makes for weird errors when you add more than 3 i2c devices. Perhaps this value should be exposed as an entry in menuconfig so it can be easily changed (and discovered).

jolivepetrus commented 6 years ago

@xopxe,

Solved in https://github.com/whitecatboard/Lua-RTOS-ESP32/commit/e258a893a2b318a256d364ebb0edfdfa1729dc0c.