summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-07-16 19:01:43 -0700
committerScott Shawcroft <scott@tannewt.org>2020-07-17 17:15:03 -0700
commita1e4814a27713bd08b836cbae2afa9c858bfd4e4 (patch)
treea68e5fe0195dc0296cf70ee94eaa124c64409473 /main.c
parent518d909b2c20aed5b3ff1ca849731cdadea4ba4c (diff)
Get AllocationAlarm working
Diffstat (limited to 'main.c')
-rwxr-xr-xmain.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.c b/main.c
index f928d0d62..5ad146c9c 100755
--- a/main.c
+++ b/main.c
@@ -64,6 +64,10 @@
#include "shared-module/displayio/__init__.h"
#endif
+#if CIRCUITPY_MEMORYMONITOR
+#include "shared-module/memorymonitor/__init__.h"
+#endif
+
#if CIRCUITPY_NETWORK
#include "shared-module/network/__init__.h"
#endif
@@ -198,6 +202,9 @@ void cleanup_after_vm(supervisor_allocation* heap) {
#if CIRCUITPY_DISPLAYIO
reset_displays();
#endif
+ #if CIRCUITPY_MEMORYMONITOR
+ memorymonitor_reset();
+ #endif
filesystem_flush();
stop_mp();
free_memory(heap);