File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments