test/full_stack: tolerate FP rounding errors

This commit is contained in:
Sebastien Bourdeauducq 2015-06-27 23:52:20 +02:00
parent 8b5b219a18
commit 85c5b157a0
1 changed files with 2 additions and 2 deletions

View File

@ -82,9 +82,9 @@ class _PulseLogger(AutoDB):
@kernel
def pulse(self, f, duration):
self.on(int(now()*1000000000), f)
self.on(round(now()*1000000000), f)
delay(duration)
self.off(int(now()*1000000000))
self.off(round(now()*1000000000))
class _Pulses(AutoDB):