1 parent 95fe7a4 commit c16e7eaCopy full SHA for c16e7ea
1 file changed
zephyr/main.c
@@ -67,6 +67,7 @@ int real_main(void) {
67
// Should be set to stack size in prj.mdef minus fuzz factor
68
mp_stack_set_limit(3584);
69
70
+soft_reset:
71
#if MICROPY_ENABLE_GC
72
gc_init(heap, heap + sizeof(heap));
73
#endif
@@ -89,7 +90,9 @@ int real_main(void) {
89
90
}
91
92
- mp_deinit();
93
+ printf("soft reboot\n");
94
+ goto soft_reset;
95
+
96
return 0;
97
98
0 commit comments