nrf: Enable source line on tracebacks.

This commit is contained in:
Daniel Mizyrycki 2021-08-08 14:15:56 -07:00 committed by Damien George
parent 77b4cfcbc9
commit 8645b7c23b
5 changed files with 20 additions and 1 deletions

View File

@ -44,6 +44,14 @@
// Board overridable feature configuration.
#ifndef MICROPY_ENABLE_SOURCE_LINE
#if defined(BLUETOOTH_SD)
#define MICROPY_ENABLE_SOURCE_LINE (0)
#else
#define MICROPY_ENABLE_SOURCE_LINE (1)
#endif
#endif
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
#if defined(BLUETOOTH_SD)
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (0)

View File

@ -36,6 +36,10 @@
// Board overridable feature configuration.
#ifndef MICROPY_ENABLE_SOURCE_LINE
#define MICROPY_ENABLE_SOURCE_LINE (1)
#endif
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
#endif

View File

@ -36,6 +36,10 @@
// Board overridable feature configuration.
#ifndef MICROPY_ENABLE_SOURCE_LINE
#define MICROPY_ENABLE_SOURCE_LINE (1)
#endif
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
#endif

View File

@ -36,6 +36,10 @@
// Board overridable feature configuration.
#ifndef MICROPY_ENABLE_SOURCE_LINE
#define MICROPY_ENABLE_SOURCE_LINE (1)
#endif
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
#endif

View File

@ -55,7 +55,6 @@
#define MICROPY_REPL_EMACS_KEYS (0)
#define MICROPY_REPL_AUTO_INDENT (1)
#define MICROPY_KBD_EXCEPTION (1)
#define MICROPY_ENABLE_SOURCE_LINE (0)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
#if NRF51
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE)