duplicate
Former-commit-id: a93092c3f3c7bea8da614a0bd6266ac8dbdbb85f
This commit is contained in:
4
main.py
4
main.py
@ -221,7 +221,7 @@ class MAT:
|
|||||||
self.speeds = (quick_speed, slow_speed, end_speed,end_speed)
|
self.speeds = (quick_speed, slow_speed, end_speed,end_speed)
|
||||||
|
|
||||||
if cap_dir is not None:
|
if cap_dir is not None:
|
||||||
vid_name = f"{cap_dir}/{datetime.now().strftime('%Y%m%d_%H%M%S')}.mp4"
|
vid_name = f"{cap_dir}/{datetime.now().strftime('%Y%m%d_%H%M%S')}.mkv"
|
||||||
else:
|
else:
|
||||||
vid_name = "Disabled"
|
vid_name = "Disabled"
|
||||||
|
|
||||||
@ -269,8 +269,6 @@ class MAT:
|
|||||||
should_push = True
|
should_push = True
|
||||||
elif self.state.is_about_mode() and time.time() - self.ch340.start > end_time:
|
elif self.state.is_about_mode() and time.time() - self.ch340.start > end_time:
|
||||||
should_push = True
|
should_push = True
|
||||||
elif self.state.is_about_mode() and time.time() - self.ch340.start > end_time:
|
|
||||||
should_push = True
|
|
||||||
|
|
||||||
if should_push:
|
if should_push:
|
||||||
speed = self.speeds[self.state.mode.value]
|
speed = self.speeds[self.state.mode.value]
|
||||||
|
Reference in New Issue
Block a user