summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorsommersoft <sommersoft@users.noreply.github.com>2019-07-27 10:46:53 -0500
committerGitHub <noreply@github.com>2019-07-27 10:46:53 -0500
commitcebdadd0f6122826337c962b3d443bd41d1de69d (patch)
treee2aeb661c3760f7aaf152bc1bbd95fd120161ab8 /main.c
parentc335f170d7d561d07ca7412da60c260e13c5e746 (diff)
parentd99d3bd471920cdd9b2683b7dbd538551f7aee43 (diff)
Merge branch 'master' into dynamic_support_matrix
Diffstat (limited to 'main.c')
-rwxr-xr-xmain.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6d7502ba4..6ab50fc3c 100755
--- a/main.c
+++ b/main.c
@@ -45,7 +45,6 @@
#include "background.h"
#include "mpconfigboard.h"
-#include "shared-module/displayio/__init__.h"
#include "supervisor/cpu.h"
#include "supervisor/memory.h"
#include "supervisor/port.h"
@@ -58,6 +57,10 @@
#include "supervisor/shared/stack.h"
#include "supervisor/serial.h"
+#if CIRCUITPY_DISPLAYIO
+#include "shared-module/displayio/__init__.h"
+#endif
+
#if CIRCUITPY_NETWORK
#include "shared-module/network/__init__.h"
#endif
@@ -187,7 +190,9 @@ void cleanup_after_vm(supervisor_allocation* heap) {
supervisor_move_memory();
reset_port();
+ #if CIRCUITPY_BOARD
reset_board_busses();
+ #endif
reset_board();
reset_status_led();
}