Commit 08ff71df authored by Damien George's avatar Damien George

tests/pybnative: Make while.py test run on boards without pyb.delay.

Signed-off-by: default avatarDamien George <damien@micropython.org>
parent 35ead0ff
import pyb import time, pyb
@micropython.native @micropython.native
...@@ -8,7 +8,7 @@ def f(led, n, d): ...@@ -8,7 +8,7 @@ def f(led, n, d):
while i < n: while i < n:
print(i) print(i)
led.toggle() led.toggle()
pyb.delay(d) time.sleep_ms(d)
i += 1 i += 1
led.off() led.off()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment