Skip to content

Commit f7c4a22

Browse files
committed
Fix build bugs exposed by posix port
1 parent 49d952c commit f7c4a22

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292

9393
#if CIRCUITPY_DISPLAYIO
9494
#include "shared-module/displayio/__init__.h"
95+
#include "shared-bindings/displayio/__init__.h"
9596
#endif
9697

9798
#if CIRCUITPY_EPAPERDISPLAY

shared-module/displayio/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <string.h>
2828

2929
#include "shared-module/displayio/__init__.h"
30+
#include "shared-bindings/displayio/__init__.h"
3031

3132
#include "shared/runtime/interrupt_char.h"
3233
#include "py/runtime.h"
@@ -38,7 +39,6 @@
3839
#include "supervisor/shared/display.h"
3940
#include "supervisor/shared/reload.h"
4041

41-
#include "supervisor/spi_flash_api.h"
4242
#include "py/mpconfig.h"
4343

4444
#if CIRCUITPY_BUSDISPLAY

shared-module/epaperdisplay/EPaperDisplay.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
#pragma once
2828

29-
#include "shared-bindings/digitalio/DigitalInOut.h"
3029
#include "shared-bindings/displayio/Group.h"
3130

3231
#include "shared-module/displayio/area.h"

shared-module/framebufferio/FramebufferDisplay.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include "py/obj.h"
3232
#include "py/proto.h"
3333

34-
#include "shared-bindings/digitalio/DigitalInOut.h"
3534
#include "shared-bindings/displayio/Group.h"
3635

3736
#include "shared-module/displayio/area.h"

shared-module/supervisor/StatusBar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ bool shared_module_supervisor_status_bar_get_display(supervisor_status_bar_obj_t
6060
return self->display;
6161
}
6262

63-
#if CIRCUITPY_TERMINALIO
63+
#if CIRCUITPY_STATUS_BAR && CIRCUITPY_TERMINALIO
6464
void shared_module_supervisor_status_bar_set_display(supervisor_status_bar_obj_t *self, bool enabled) {
6565
if (self->display == enabled) {
6666
// Do nothing if not changing the state.

0 commit comments

Comments
 (0)