Commit c93e336c authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes bug _read_values

Showing with 1 addition and 1 deletion
+1 -1
...@@ -126,7 +126,7 @@ class OhmPiHardware: ...@@ -126,7 +126,7 @@ class OhmPiHardware:
self.rx.voltage]) self.rx.voltage])
sample+=1 sample+=1
sleep_time = self._start_time + datetime.timedelta(seconds = sample * sampling_rate / 1000) - lap sleep_time = self._start_time + datetime.timedelta(seconds = sample * sampling_rate / 1000) - lap
time.sleep(np.min([0, np.abs(sleep_time.total_seconds())])) time.sleep(np.max([0, sleep_time.total_seconds()]))
self.readings = np.array(_readings) self.readings = np.array(_readings)
self._pulse += 1 self._pulse += 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment