File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 5151
5252// The default indicates no primary display
5353static int primary_display_number = -1 ;
54- static mp_int_t max_num_displays = CIRCUITPY_DISPLAY_LIMIT ;
5554mp_int_t max_allocated_display = CIRCUITPY_DISPLAY_LIMIT ;
5655
5756primary_display_bus_t display_buses [CIRCUITPY_DISPLAY_LIMIT ];
@@ -237,6 +236,7 @@ void common_hal_displayio_release_displays(void) {
237236
238237void malloc_display_memory (void ) {
239238 #if CIRCUITPY_OS_GETENV && CIRCUITPY_SET_DISPLAY_LIMIT
239+ mp_int_t max_num_displays = CIRCUITPY_DISPLAY_LIMIT ;
240240 (void )common_hal_os_getenv_int ("CIRCUITPY_DISPLAY_LIMIT" , & max_num_displays );
241241 if (max_num_displays > CIRCUITPY_DISPLAY_LIMIT ) {
242242 display_buses_dyn = m_new0 (primary_display_bus_t , (max_num_displays - CIRCUITPY_DISPLAY_LIMIT ));
You can’t perform that action at this time.
0 commit comments