aboutsummaryrefslogtreecommitdiff
path: root/stm/pybmodule.c
diff options
context:
space:
mode:
authorDamien George2014-03-25 14:18:18 +0000
committerDamien George2014-03-25 14:18:18 +0000
commitcaac542b235003f7b79d7aa23eaebe8f2c772508 (patch)
treef70b42312f091b10c9e3d871fe1a70d573e7cba4 /stm/pybmodule.c
parent1dfde891e3e26543da6d42215da6a23c32b0a8bc (diff)
Proper support for registering builtin modules in ROM.
Comes with some refactoring of code and renaming of files. All modules are now named mod*.[ch].
Diffstat (limited to 'stm/pybmodule.c')
-rw-r--r--stm/pybmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stm/pybmodule.c b/stm/pybmodule.c
index ed705af73..fde61b513 100644
--- a/stm/pybmodule.c
+++ b/stm/pybmodule.c
@@ -181,7 +181,8 @@ STATIC mp_obj_t pyb_standby(void) {
MP_DEFINE_CONST_FUN_OBJ_0(pyb_standby_obj, pyb_standby);
STATIC mp_obj_t pyb_hid_send_report(mp_obj_t arg) {
- mp_obj_t *items = mp_obj_get_array_fixed_n(arg, 4);
+ mp_obj_t *items;
+ mp_obj_get_array_fixed_n(arg, 4, &items);
uint8_t data[4];
data[0] = mp_obj_get_int(items[0]);
data[1] = mp_obj_get_int(items[1]);