mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #1272 from openmv/imageio_fix
Fix ImageIO pause arg.
This commit is contained in:
commit
06d7e223be
@ -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()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user