Skip to content

Commit 759ded9

Browse files
committed
Fix build errors when SHARPDISPLAY && !RGBMATRIX
1 parent 65f91f6 commit 759ded9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

shared-module/displayio/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void common_hal_displayio_release_displays(void) {
107107
common_hal_displayio_i2cdisplay_deinit(&displays[i].i2cdisplay_bus);
108108
} else if (bus_type == &displayio_parallelbus_type) {
109109
common_hal_displayio_parallelbus_deinit(&displays[i].parallel_bus);
110-
#if CIRCUITPY_FRAMEBUFFERIO
110+
#if CIRCUITPY_RGBMATRIX
111111
} else if (bus_type == &rgbmatrix_RGBMatrix_type) {
112112
common_hal_rgbmatrix_rgbmatrix_deinit(&displays[i].rgbmatrix);
113113
#endif
@@ -222,7 +222,7 @@ void displayio_gc_collect(void) {
222222
}
223223
#endif
224224
#if CIRCUITPY_SHARPDISPLAY
225-
if (displays[i].rgbmatrix.base.type == &sharpdisplay_framebuffer_type) {
225+
if (displays[i].bus_base.type == &sharpdisplay_framebuffer_type) {
226226
common_hal_sharpdisplay_framebuffer_collect_ptrs(&displays[i].sharpdisplay);
227227
}
228228
#endif

supervisor/shared/display.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#endif
4040

4141
#if CIRCUITPY_SHARPDISPLAY
42+
#include "shared-module/displayio/__init__.h"
4243
#include "shared-bindings/sharpdisplay/SharpMemoryFramebuffer.h"
4344
#include "shared-module/sharpdisplay/SharpMemoryFramebuffer.h"
4445
#endif

0 commit comments

Comments
 (0)