Commit 105e32f1 authored by Damien George's avatar Damien George
Browse files

stmhal: Enable moductypes by default.

Also fixes compiler error in moductypes when compiled without debugging.

Addresses issue #778.
parent f20375ee
...@@ -315,6 +315,7 @@ STATIC mp_obj_t get_aligned(uint val_type, void *p, mp_int_t index) { ...@@ -315,6 +315,7 @@ STATIC mp_obj_t get_aligned(uint val_type, void *p, mp_int_t index) {
return mp_obj_new_float(((double*)p)[index]); return mp_obj_new_float(((double*)p)[index]);
default: default:
assert(0); assert(0);
return MP_OBJ_NULL;
} }
} }
...@@ -513,6 +514,7 @@ STATIC mp_obj_t uctypes_struct_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_ob ...@@ -513,6 +514,7 @@ STATIC mp_obj_t uctypes_struct_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_ob
} }
assert(0); assert(0);
return MP_OBJ_NULL;
} else { } else {
// store // store
return MP_OBJ_NULL; // op not supported return MP_OBJ_NULL; // op not supported
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#define MICROPY_PY_CMATH (1) #define MICROPY_PY_CMATH (1)
#define MICROPY_PY_IO (1) #define MICROPY_PY_IO (1)
#define MICROPY_PY_IO_FILEIO (1) #define MICROPY_PY_IO_FILEIO (1)
#define MICROPY_PY_UCTYPES (1)
#define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1) #define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1)
#define MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE (0) #define MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE (0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment