small change
This commit is contained in:
parent
d6267cff2b
commit
c7ee165350
@ -320,7 +320,7 @@ class Recorder():
|
|||||||
subprocess.run(['sudo', 'ip', 'link', 'set', 'eth0', 'up'])
|
subprocess.run(['sudo', 'ip', 'link', 'set', 'eth0', 'up'])
|
||||||
GPIO.output(self.LED2_pin, GPIO.HIGH)
|
GPIO.output(self.LED2_pin, GPIO.HIGH)
|
||||||
disp_eth_power = True
|
disp_eth_power = True
|
||||||
last_button_2_t = time()
|
self.last_button_2_t = time()
|
||||||
|
|
||||||
if self.config.record_temp == True:
|
if self.config.record_temp == True:
|
||||||
if time() - temp_t0 > next_temp_t:
|
if time() - temp_t0 > next_temp_t:
|
||||||
@ -419,10 +419,8 @@ class Recorder():
|
|||||||
|
|
||||||
GPIO.cleanup()
|
GPIO.cleanup()
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
config = Configuration()
|
config = Configuration()
|
||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
rec_duration = int(sys.argv[1])
|
rec_duration = int(sys.argv[1])
|
||||||
config.start_clock = [config.now.hour, config.now.minute]
|
config.start_clock = [config.now.hour, config.now.minute]
|
||||||
|
Loading…
Reference in New Issue
Block a user