From 561b82a5bef99ccbc652d6843662451a20b4c70c Mon Sep 17 00:00:00 2001 From: slush0 Date: Thu, 5 May 2016 20:17:29 +0200 Subject: [PATCH] Fixed API (wait() returns number, not Sleep object) --- src/lib/const_delay.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/const_delay.py b/src/lib/const_delay.py index 0e68e80f45..087ed7f0cf 100644 --- a/src/lib/const_delay.py +++ b/src/lib/const_delay.py @@ -1,4 +1,3 @@ -from trezor.loop import Sleep import utime class ConstDelay: @@ -10,4 +9,4 @@ class ConstDelay: # FIXME - use loop.call_at instead of call_later to avoid multiple time handling delay = 2 * self.delay - (utime.ticks_us() - self.last_run) self.last_run = utime.ticks_us() - return Sleep(delay) + return delay