diff --git a/measure.py b/measure.py index 632b8a96971a3dd9ff5e044abe75047db7f9ec71..2f52185c517244adf343a53ab40046da78d61d48 100644 --- a/measure.py +++ b/measure.py @@ -59,9 +59,9 @@ class OhmPiHardware: def _read_values(self, sampling_rate): # noqa _readings = [] + sample = 0 self.tx_sync.wait() start_time = datetime.datetime.utcnow() - sample=0 while self.tx_sync.is_set(): lap = datetime.datetime.utcnow() _readings.append([elapsed_seconds(start_time), self.tx.current, self.rx.voltage])