Correct compilier error (unused static) if no I2C ports defined by port

This commit is contained in:
Peter D. Gray 2017-12-20 10:40:31 -05:00
parent a1d85d6199
commit 40cf70b923

View File

@ -100,7 +100,10 @@ I2C_HandleTypeDef I2CHandle3 = {.Instance = NULL};
I2C_HandleTypeDef I2CHandle4 = {.Instance = NULL};
#endif
#if defined(MICROPY_HW_I2C1_SCL) || defined(MICROPY_HW_I2C2_SCL) \
|| defined(MICROPY_HW_I2C3_SCL) || defined(MICROPY_HW_I2C3_SCL)
STATIC bool pyb_i2c_use_dma[4];
#endif
const pyb_i2c_obj_t pyb_i2c_obj[] = {
#if defined(MICROPY_HW_I2C1_SCL)