Skip to content

Commit 6d2d36d

Browse files
committed
Finish implementing scott's suggestion
1 parent 6425a41 commit 6d2d36d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/displayio/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ primary_display_t *allocate_display_or_raise(void) {
399399
primary_display_t *allocate_display_bus(void) {
400400
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
401401
mp_const_obj_t display_bus_type = displays[i].bus_base.type;
402-
if (display_type == NULL || display_type == &mp_type_NoneType) {
402+
if (display_bus_type == NULL || display_bus_type == &mp_type_NoneType) {
403403
return &displays[i];
404404
}
405405
}

0 commit comments

Comments
 (0)