From c71d207e90153f32277ddbf1d2ab321ff315ae5b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 17 Aug 2015 23:41:21 +0800 Subject: [PATCH] core/break_realtime: only increase now --- artiq/coredevice/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/coredevice/core.py b/artiq/coredevice/core.py index 536a10054..79ba4d969 100644 --- a/artiq/coredevice/core.py +++ b/artiq/coredevice/core.py @@ -124,4 +124,6 @@ class Core: @kernel def break_realtime(self): - at_mu(syscall("rtio_get_counter") + 125000) + min_now = syscall("rtio_get_counter") + 125000 + if now_mu() < min_now: + at_mu(min_now)