diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-19 03:27:37 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-19 03:27:37 +0300 |
commit | 206dd2a905fc4bca89c0b1a8beb2c71516f2053f (patch) | |
tree | 6f8b87556c10b268ef0c4d8a90e574ce1085e33d | |
parent | 6204460461cc21b27861fa89b2423119f8cdce88 (diff) | |
download | micropython-206dd2a905fc4bca89c0b1a8beb2c71516f2053f.tar.gz micropython-206dd2a905fc4bca89c0b1a8beb2c71516f2053f.zip |
stmhal: Update for mp_binary_get_size() refactor.
-rw-r--r-- | stmhal/adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/adc.c b/stmhal/adc.c index be83b03ad7..f03017ab4f 100644 --- a/stmhal/adc.c +++ b/stmhal/adc.c @@ -169,7 +169,7 @@ STATIC mp_obj_t adc_read_timed(mp_obj_t self_in, mp_obj_t buf_in, mp_obj_t freq_ mp_buffer_info_t bufinfo; mp_get_buffer_raise(buf_in, &bufinfo, MP_BUFFER_WRITE); - int typesize = mp_binary_get_size(bufinfo.typecode); + int typesize = mp_binary_get_size('@', bufinfo.typecode, NULL); // Init TIM6 at the required frequency (in Hz) timer_tim6_init(mp_obj_get_int(freq_in)); |