log next step

This commit is contained in:
j 2022-10-30 12:36:21 +01:00
parent 8f79d073e6
commit 42be31ca81

View File

@ -229,6 +229,11 @@ class Camera:
segment_t0 = time.time() segment_t0 = time.time()
if self.abort: if self.abort:
return return
print('next step %s at %s - %s' % (
steps.index(step),
datetime.now().strftime('%Y-%m-%d_%H:%M:%S'),
json.dumps(step)
))
if isinstance(step, dict): if isinstance(step, dict):
if 'fast' in step or ('speed' in step and step['speed'] > 100): if 'fast' in step or ('speed' in step and step['speed'] > 100):
self.fast_preset(step.get('fast', step.get('preset')), True) self.fast_preset(step.get('fast', step.get('preset')), True)