diff options
| author | Andrew Leech <andrew@alelec.net> | 2024-03-21 10:23:14 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-03-26 16:49:40 +1100 |
| commit | 34c4625dcc52aa3f8284a43e86ca7f39e11c15f1 (patch) | |
| tree | 24d2431a189a4435178688382e3ca60229badd85 | |
| parent | 4dd288ff62a14d973166ef3b041ab0fe7c78863c (diff) | |
nrf/main: Fix build of microbit when SD is enabled.
Signed-off-by: Andrew Leech <andrew@alelec.net>
| -rw-r--r-- | ports/nrf/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/nrf/main.c b/ports/nrf/main.c index dd9f232b8..07bf3e8ad 100644 --- a/ports/nrf/main.c +++ b/ports/nrf/main.c @@ -262,7 +262,7 @@ soft_reset: led_state(1, 0); #if MICROPY_VFS || MICROPY_MBFS || MICROPY_MODULE_FROZEN - ret = pyexec_file_if_exists("boot.py"); + ret_code = pyexec_file_if_exists("boot.py"); #endif #if MICROPY_HW_USB_CDC @@ -270,7 +270,7 @@ soft_reset: #endif #if MICROPY_VFS || MICROPY_MBFS || MICROPY_MODULE_FROZEN - if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL && ret != 0) { + if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL && ret_code != 0) { pyexec_file_if_exists("main.py"); } #endif |
