summaryrefslogtreecommitdiff
path: root/tests/extmod/machine_timer.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/machine_timer.py')
-rw-r--r--tests/extmod/machine_timer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/extmod/machine_timer.py b/tests/extmod/machine_timer.py
index c9a47c402..1be01d184 100644
--- a/tests/extmod/machine_timer.py
+++ b/tests/extmod/machine_timer.py
@@ -1,7 +1,7 @@
# test machine.Timer
try:
- import utime, umachine as machine
+ import time, machine as machine
machine.Timer
except:
@@ -29,10 +29,10 @@ t.deinit()
# create one-shot timer with callback and wait for it to print (should be just once)
t = machine.Timer(period=1, mode=machine.Timer.ONE_SHOT, callback=lambda t: print("one-shot"))
-utime.sleep_ms(5)
+time.sleep_ms(5)
t.deinit()
# create periodic timer with callback and wait for it to print
t = machine.Timer(period=4, mode=machine.Timer.PERIODIC, callback=lambda t: print("periodic"))
-utime.sleep_ms(14)
+time.sleep_ms(14)
t.deinit()