fix setting of correct camera status on timelapse stop

This commit is contained in:
Alexander Minges 2019-02-01 17:01:41 +01:00
parent 6ae1f9f22f
commit 8830e17f2f

View file

@ -78,7 +78,7 @@ class CameraWorker(object):
def stop_timelapse(self): def stop_timelapse(self):
if self.status == CameraStatus.TIMELAPSE: if self.status == CameraStatus.TIMELAPSE:
self._send_cmd('tl 0') self._send_cmd('tl 0')
self.status == CameraStatus.IDLE self.status = CameraStatus.IDLE
else: else:
raise CameraActionError('Camera not in timelapse mode!') raise CameraActionError('Camera not in timelapse mode!')