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.
2 parents 988e5ca + 6d2d36d commit 5771be9Copy full SHA for 5771be9
shared-module/displayio/__init__.c
@@ -394,8 +394,8 @@ primary_display_t *allocate_display_or_raise(void) {
394
}
395
primary_display_t *allocate_display_bus(void) {
396
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
397
- mp_const_obj_t display_type = displays[i].display.base.type;
398
- if (display_type == NULL || display_type == &mp_type_NoneType) {
+ mp_const_obj_t display_bus_type = displays[i].bus_base.type;
+ if (display_bus_type == NULL || display_bus_type == &mp_type_NoneType) {
399
return &displays[i];
400
401
0 commit comments