We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a82ddf4 commit 424ea88Copy full SHA for 424ea88
shared-module/board/__init__.c
@@ -176,7 +176,7 @@ mp_obj_t common_hal_board_create_uart(const mp_int_t instance) {
176
#endif
177
178
void reset_board_buses(void) {
179
- #if CIRCUITPY_BOARD_I2C || (CIRCUITPY_BOARD_SPI && (CIRCUITPY_FOURWIRE || CIRCUITPY_SHARPDISPLAY || CIRCUITPY_AURORA_EPAPER))
+ #if (CIRCUITPY_BOARD_I2C && CIRCUITPY_I2CDISPLAYBUS) || (CIRCUITPY_BOARD_SPI && (CIRCUITPY_FOURWIRE || CIRCUITPY_SHARPDISPLAY || CIRCUITPY_AURORA_EPAPER))
180
mp_int_t max_num_displays = CIRCUITPY_DISPLAY_LIMIT;
181
#if CIRCUITPY_OS_GETENV
182
#define DYN_DISPLAY_BUSES(indx) (indx < CIRCUITPY_DISPLAY_LIMIT ? display_buses[indx] : display_buses_dyn[indx - CIRCUITPY_DISPLAY_LIMIT])
0 commit comments