Skip to content

Commit 824705c

Browse files
committed
quectel: Modify delay time when ms = 0.
1 parent 2bb72e7 commit 824705c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ports/quectel/mphalport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ void mp_hal_delay_ms(mp_uint_t ms) {
242242
{
243243
t0 = mp_hal_ticks_us();
244244
MP_THREAD_GIL_EXIT();
245-
mp_uint_t wait_time = qpy_mthread_sleep_deal_fun(ms);
245+
mp_uint_t wait_time = qpy_mthread_sleep_deal_fun(ms ? ms : 1);
246246
MP_THREAD_GIL_ENTER();
247247
if (wait_time >= ms) {
248248
return;

0 commit comments

Comments
 (0)