diff options
| author | Damien George | 2014-03-25 14:18:18 +0000 |
|---|---|---|
| committer | Damien George | 2014-03-25 14:18:18 +0000 |
| commit | caac542b235003f7b79d7aa23eaebe8f2c772508 (patch) | |
| tree | f70b42312f091b10c9e3d871fe1a70d573e7cba4 /stm/pybmodule.c | |
| parent | 1dfde891e3e26543da6d42215da6a23c32b0a8bc (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.c | 3 |
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]); |
