Skip to content

Commit 20c20e4

Browse files
committed
Thats what happens when you trust code gen too much :/
1 parent 4fcc8e1 commit 20c20e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared-module/displayio/__init__.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,13 @@ void reset_displays(void) {
253253
// In CircuitPython 10, release secondary displays before doing anything else:
254254
common_hal_displayio_release_displays_impl(true);
255255
#if CIRCUITPY_OS_GETENV && CIRCUITPY_SET_DISPLAY_LIMIT
256-
// Set dynamically allocated displays to 0 (CIRCUITPY_DISPLAY_LIMIT)
257-
max_allocated_display = CIRCUITPY_DISPLAY_LIMIT;
258-
// Does this need to be done or dos port_free effectively do this?
256+
// Does this need to be done or does port_free effectively do this?
259257
m_del(primary_display_bus_t, display_buses_dyn, (max_allocated_display - CIRCUITPY_DISPLAY_LIMIT));
260258
m_del(primary_display_t, displays_dyn, (max_allocated_display - CIRCUITPY_DISPLAY_LIMIT));
261259
display_buses_dyn = NULL;
262260
displays_dyn = NULL;
261+
// Set dynamically allocated displays to 0 (CIRCUITPY_DISPLAY_LIMIT)
262+
max_allocated_display = CIRCUITPY_DISPLAY_LIMIT;
263263
#endif
264264

265265
// The SPI buses used by FourWires may be allocated on the heap so we need to move them inline.

0 commit comments

Comments
 (0)