small change

This commit is contained in:
tillraab 2022-05-09 11:53:43 +02:00
parent d6267cff2b
commit c7ee165350

View File

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