8000 tests/pybnative: Make while.py test run on boards without pyb.delay. · micropython/micropython@08ff71d · GitHub
[go: up one dir, main page]

Skip to content

Commit 08ff71d

Browse files
committed
tests/pybnative: Make while.py test run on boards without pyb.delay.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 35ead0f commit 08ff71d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pybnative/while.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pyb
1+
import time, pyb
22

33

44
@micropython.native
@@ -8,7 +8,7 @@ def f(led, n, d):
88
while i < n:
99
print(i)
1010
led.toggle()
11-
pyb.delay(d)
11+
time.sleep_ms(d)
1212
i += 1
1313
led.off()
1414

0 commit comments

Comments
 (0)
0