Finish implementing scott's suggestion

This commit is contained in:
Jeff Epler 2020-08-17 21:09:21 -05:00
parent 6425a411ca
commit 6d2d36db3d

View File

@ -399,7 +399,7 @@ primary_display_t *allocate_display_or_raise(void) {
primary_display_t *allocate_display_bus(void) { primary_display_t *allocate_display_bus(void) {
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) { for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
mp_const_obj_t display_bus_type = displays[i].bus_base.type; mp_const_obj_t display_bus_type = displays[i].bus_base.type;
if (display_type == NULL || display_type == &mp_type_NoneType) { if (display_bus_type == NULL || display_bus_type == &mp_type_NoneType) {
return &displays[i]; return &displays[i];
} }
} }