diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-08-17 21:09:21 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-08-17 21:09:21 -0500 |
| commit | 6d2d36db3d161fefadd52cc1f2d5a9da99bb2dc9 (patch) | |
| tree | d29ac40aa639a9b13b31ad652fa02b4b51df13a0 /shared-module | |
| parent | 6425a411ca7e53b8cdc6c8399c6cd717f39e25fe (diff) | |
Finish implementing scott's suggestion
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/displayio/__init__.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/displayio/__init__.c b/shared-module/displayio/__init__.c index 73626ce15..295af3e7c 100644 --- a/shared-module/displayio/__init__.c +++ b/shared-module/displayio/__init__.c @@ -399,7 +399,7 @@ primary_display_t *allocate_display_or_raise(void) { primary_display_t *allocate_display_bus(void) { for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) { 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]; } } |
