changes to adapt code to resproduction expteriment/setup
This commit is contained in:
parent
2af579448c
commit
71d8400bca
@ -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
|
||||
|
||||
|
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user