changes to adapt code to resproduction expteriment/setup

This commit is contained in:
tillraab 2022-12-13 10:40:36 +01:00
parent 2af579448c
commit 71d8400bca
2 changed files with 5 additions and 4 deletions

View File

@ -103,10 +103,10 @@ def read_cfg(cfg_file, now, init_read=False):
cfg[enu] = (' StartTime : %s\n' % (now.strftime('%H:%M:%S') + now.strftime(".%f")[:4]))
cfg_f.close()
cfg_f = open(cfg_file, 'w+')
for line in cfg:
cfg_f.write(line)
cfg_f.close()
# cfg_f = open(cfg_file, 'w+')
# for line in cfg:
# cfg_f.write(line)
# cfg_f.close()
return channels, samplerate, n_cols, n_rows, max_v, gain

View File

@ -313,6 +313,7 @@ class Recorder():
subprocess.run(['sudo', 'ip', 'link', 'set', 'eth0', 'down'])
GPIO.output(self.LED2_pin, GPIO.LOW)
disp_eth_power = False
self.last_button_2_t = time()
elif disp_eth_power == False:
subprocess.run(['tvservice', '-p'])