end command with newline char
This commit is contained in:
parent
20e1d696a0
commit
cd2484a8d8
1 changed files with 2 additions and 2 deletions
|
@ -58,11 +58,11 @@ class CameraWorker(object):
|
|||
|
||||
def send_cmd(self, cmd):
|
||||
with open(self.fifo, 'w') as fh:
|
||||
fh.write(cmd)
|
||||
fh.write('{}\n'.format(cmd))
|
||||
|
||||
def start_timelapse(self, interval=300):
|
||||
if self.status == CameraStatus.IDLE:
|
||||
self.send_cmd('tv {} \n tl 1'.format(str(interval)))
|
||||
self.send_cmd('tv {}'.format(str(interval)))
|
||||
self.send_cmd('tl 1')
|
||||
self.status = CameraStatus.TIMELAPSE
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue