From 9b5a46dffd50b840a1030b696be1829cf7deb090 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Thu, 31 May 2018 15:56:11 +0000 Subject: [PATCH] suservo: fix restart counter assertion c.f. #788 --- artiq/gateware/suservo/servo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/gateware/suservo/servo.py b/artiq/gateware/suservo/servo.py index b19a6e73d..08b31a3bc 100644 --- a/artiq/gateware/suservo/servo.py +++ b/artiq/gateware/suservo/servo.py @@ -26,7 +26,7 @@ class Servo(Module): self.start = Signal() t_restart = t_cycle - t_adc + 1 - assert t_restart > 0 + assert t_restart > 1 cnt = Signal(max=t_restart) cnt_done = Signal() active = Signal(3)