8000 nrf: Enable source line on tracebacks. · codemee/micropython@8645b7c · GitHub
[go: up one dir, main page]

Skip to content

Commit 8645b7c

Browse files
mzdanieldpgeorge
authored andcommitted
nrf: Enable source line on tracebacks.
1 parent 77b4cfc commit 8645b7c

5 files changed

+20
-1
lines changed

ports/nrf/mpconfigdevice_nrf51822.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444

4545
// Board overridable feature configuration.
4646

47+
#ifndef MICROPY_ENABLE_SOURCE_LINE
48+
#if defined(BLUETOOTH_SD)
49+
#define MICROPY_ENABLE_SOURCE_LINE (0)
50+
#else
51+
#define MICROPY_ENABLE_SOURCE_LINE (1)
52+
#endif
53+
#endif
54+
4755
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
4856
#if defined(BLUETOOTH_SD)
4957
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (0)

ports/nrf/mpconfigdevice_nrf52832.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636

3737
// Board overridable feature configuration.
3838

39+
#ifndef MICROPY_ENABLE_SOURCE_LINE
40+
#define MICROPY_ENABLE_SOURCE_LINE (1)
41+
#endif
42+
3943
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
4044
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
4145
#endif

ports/nrf/mpconfigdevice_nrf52840.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636

3737
// Board overridable feature configuration.
3838

39+
#ifndef MICROPY_ENABLE_SOURCE_LINE
40+
#define MICROPY_ENABLE_SOURCE_LINE (1)
41+
#endif
42+
3943
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
4044
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
4145
#endif

ports/nrf/mpconfigdevice_nrf9160.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636

3737
// Board overridable feature configuration.
3838

39+
#ifndef MICROPY_ENABLE_SOURCE_LINE
40+
#define MICROPY_ENABLE_SOURCE_LINE (1)
41+
#endif
42+
3943
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
4044
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
4145
#endif

ports/nrf/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
#define MICROPY_REPL_EMACS_KEYS (0)
5656
#define MICROPY_REPL_AUTO_INDENT (1)
5757
#define MICROPY_KBD_EXCEPTION (1)
58-
#define MICROPY_ENABLE_SOURCE_LINE (0)
5958
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
6059
#if NRF51
6160
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE)

0 commit comments

Comments
 (0)
0