forked from M-Labs/artiq
1
0
Fork 0

core/break_realtime: only increase now

This commit is contained in:
Sebastien Bourdeauducq 2015-08-17 23:41:21 +08:00
parent 278adf193d
commit c71d207e90
1 changed files with 3 additions and 1 deletions

View File

@ -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)