diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-01-17 18:19:07 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-01-17 18:19:07 -0800 |
| commit | 6404aaf411d7fe5fd96f3a8cbf7a1cb7580a09e7 (patch) | |
| tree | c4862f29c962e724a0df35c01ed04256df03b22a /shared-bindings/displayio/ParallelBus.c | |
| parent | 760bd8d8a4f0aa0ed8651e89596fb2e6effbc14f (diff) | |
Fix up nrf and using board.SPI in FourWire
Diffstat (limited to 'shared-bindings/displayio/ParallelBus.c')
| -rw-r--r-- | shared-bindings/displayio/ParallelBus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shared-bindings/displayio/ParallelBus.c b/shared-bindings/displayio/ParallelBus.c index aa861bb81..e1079acb5 100644 --- a/shared-bindings/displayio/ParallelBus.c +++ b/shared-bindings/displayio/ParallelBus.c @@ -83,7 +83,8 @@ STATIC mp_obj_t displayio_parallelbus_make_new(const mp_obj_type_t *type, size_t displayio_parallelbus_obj_t* self = NULL; for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) { - if (displays[i].parallel_bus.base.type== NULL) { + if (displays[i].parallel_bus.base.type== NULL || + displays[i].parallel_bus.base.type == &mp_type_NoneType) { self = &displays[i].parallel_bus; self->base.type = &displayio_parallelbus_type; break; |
