Skip to content

Commit 424ea88

Browse files
committed
don't define max_num_displays when not needed
1 parent a82ddf4 commit 424ea88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/board/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ mp_obj_t common_hal_board_create_uart(const mp_int_t instance) {
176176
#endif
177177

178178
void reset_board_buses(void) {
179-
#if CIRCUITPY_BOARD_I2C || (CIRCUITPY_BOARD_SPI && (CIRCUITPY_FOURWIRE || CIRCUITPY_SHARPDISPLAY || CIRCUITPY_AURORA_EPAPER))
179+
#if (CIRCUITPY_BOARD_I2C && CIRCUITPY_I2CDISPLAYBUS) || (CIRCUITPY_BOARD_SPI && (CIRCUITPY_FOURWIRE || CIRCUITPY_SHARPDISPLAY || CIRCUITPY_AURORA_EPAPER))
180180
mp_int_t max_num_displays = CIRCUITPY_DISPLAY_LIMIT;
181181
#if CIRCUITPY_OS_GETENV
182182
#define DYN_DISPLAY_BUSES(indx) (indx < CIRCUITPY_DISPLAY_LIMIT ? display_buses[indx] : display_buses_dyn[indx - CIRCUITPY_DISPLAY_LIMIT])

0 commit comments

Comments
 (0)