summaryrefslogtreecommitdiff
path: root/shared-bindings/microcontroller/RunMode.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-07-21 16:26:46 -0700
committerScott Shawcroft <scott@tannewt.org>2020-07-22 16:26:46 -0700
commit2bd6d056638f05185eb497ca2d039ebe9f386327 (patch)
treea4e2711f774f400d034d67369212a914faedacea /shared-bindings/microcontroller/RunMode.h
parentd22283c9c44949242b16fdd4ba4b9d8c55a58add (diff)
Add externs. GCC10 complains about duplicate defines
Diffstat (limited to 'shared-bindings/microcontroller/RunMode.h')
-rw-r--r--shared-bindings/microcontroller/RunMode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/microcontroller/RunMode.h b/shared-bindings/microcontroller/RunMode.h
index 5e8b6e646..ce90ab93a 100644
--- a/shared-bindings/microcontroller/RunMode.h
+++ b/shared-bindings/microcontroller/RunMode.h
@@ -35,7 +35,7 @@ typedef enum {
RUNMODE_BOOTLOADER
} mcu_runmode_t;
-const mp_obj_type_t mcu_runmode_type;
+extern const mp_obj_type_t mcu_runmode_type;
typedef struct {
mp_obj_base_t base;