We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d085279 commit b17cc70Copy full SHA for b17cc70
main.c
@@ -1149,7 +1149,7 @@ int __attribute__((used)) main(void) {
1149
} else {
1150
skip_repl = false;
1151
}
1152
- } else if (exit_code != 0) {
+ } else if (exit_code != PYEXEC_NORMAL_EXIT) {
1153
break;
1154
1155
py/circuitpy_mpconfig.h
@@ -51,6 +51,9 @@ extern void common_hal_mcu_enable_interrupts(void);
51
#define MICROPY_VFS_LFS1 (0)
52
#define MICROPY_VFS_LFS2 (0)
53
54
+// Always turn on exit code handling
55
+#define MICROPY_PYEXEC_ENABLE_EXIT_CODE_HANDLING (1)
56
+
57
#ifndef MICROPY_GCREGS_SETJMP
58
#define MICROPY_GCREGS_SETJMP (0)
59
#endif
0 commit comments