From c7ee165350c60572465bf18011c2e9052b5a8764 Mon Sep 17 00:00:00 2001 From: tillraab Date: Mon, 9 May 2022 11:53:43 +0200 Subject: [PATCH] small change --- grid_recorder.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/grid_recorder.py b/grid_recorder.py index 5e66a03..9bd67e5 100644 --- a/grid_recorder.py +++ b/grid_recorder.py @@ -320,7 +320,7 @@ class Recorder(): subprocess.run(['sudo', 'ip', 'link', 'set', 'eth0', 'up']) GPIO.output(self.LED2_pin, GPIO.HIGH) disp_eth_power = True - last_button_2_t = time() + self.last_button_2_t = time() if self.config.record_temp == True: if time() - temp_t0 > next_temp_t: @@ -419,10 +419,8 @@ class Recorder(): GPIO.cleanup() - def main(): config = Configuration() - if len(sys.argv) > 1: rec_duration = int(sys.argv[1]) config.start_clock = [config.now.hour, config.now.minute]