kopia lustrzana https://github.com/micropython/micropython
nrf/main: Fix build of microbit when SD is enabled.
Signed-off-by: Andrew Leech <andrew@alelec.net>pull/14142/head
rodzic
4dd288ff62
commit
34c4625dcc
|
@ -262,7 +262,7 @@ soft_reset:
|
||||||
led_state(1, 0);
|
led_state(1, 0);
|
||||||
|
|
||||||
#if MICROPY_VFS || MICROPY_MBFS || MICROPY_MODULE_FROZEN
|
#if MICROPY_VFS || MICROPY_MBFS || MICROPY_MODULE_FROZEN
|
||||||
ret = pyexec_file_if_exists("boot.py");
|
ret_code = pyexec_file_if_exists("boot.py");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MICROPY_HW_USB_CDC
|
#if MICROPY_HW_USB_CDC
|
||||||
|
@ -270,7 +270,7 @@ soft_reset:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MICROPY_VFS || MICROPY_MBFS || MICROPY_MODULE_FROZEN
|
#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");
|
pyexec_file_if_exists("main.py");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Ładowanie…
Reference in New Issue