Skip to content

Commit

Permalink
+ Don't call LED functions when no LED class instance.
Browse files Browse the repository at this point in the history
+ Start video recording before creating log file to avoid time offset.
  • Loading branch information
jofemodo committed Aug 14, 2023
1 parent a84137f commit 3ce8a5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zyngui/zynthian_gui.py
Expand Up @@ -219,10 +219,11 @@ def start_capture_log(self, title=None):
now = datetime.now()
self.capture_log_ts0 = now
self.capture_log_fname = "{}-{}".format(title, now.strftime("%Y%m%d%H%M%S"))
self.wsleds.reset_last_state()
self.start_capture_ffmpeg()
if self.wsleds:
self.wsleds.reset_last_state()
self.write_capture_log("LAYOUT: {}".format(zynthian_gui_config.wiring_layout))
self.write_capture_log("TITLE: {}".format(self.capture_log_fname))
self.start_capture_ffmpeg()


def start_capture_ffmpeg(self):
Expand Down

0 comments on commit 3ce8a5e

Please sign in to comment.