8000 stmhal: Update for mp_binary_get_size() refactor. · errordeveloper/micropython@206dd2a · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 206dd2a

Browse files
committed
stmhal: Update for mp_binary_get_size() refactor.
1 parent 6204460 commit 206dd2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stmhal/adc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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_
169169

170170
mp_buffer_info_t bufinfo;
171171
mp_get_buffer_raise(buf_in, &bufinfo, MP_BUFFER_WRITE);
172-
int typesize = mp_binary_get_size(bufinfo.typecode);
172+
int typesize = mp_binary_get_size('@', bufinfo.typecode, NULL);
173173

174174
// Init TIM6 at the required frequency (in Hz)
175175
timer_tim6_init(mp_obj_get_int(freq_in));

0 commit comments

Comments
 (0)
0