Merge pull request #1272 from openmv/imageio_fix

Fix ImageIO pause arg.
This commit is contained in:
Ibrahim Abd Elkader 2021-04-22 00:19:26 +02:00 committed by GitHub
commit 06d7e223be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,7 +180,7 @@ mp_obj_t py_imageio_read(uint n_args, const mp_obj_t *args, mp_map_t *kw_args)
uint32_t ms = 0, ms_tmp;
read_long(fp, &ms_tmp);
if (!py_helper_keyword_int(n_args, args, 3, kw_args, MP_OBJ_NEW_QSTR(MP_QSTR_pause), true)) {
if (py_helper_keyword_int(n_args, args, 3, kw_args, MP_OBJ_NEW_QSTR(MP_QSTR_pause), true)) {
for (ms = mp_hal_ticks_ms();
((ms - stream->ms) < ms_tmp);
ms = mp_hal_ticks_ms()) {