Skip to content

Commit

Permalink
bugfix: prevent periodic artifacts in trigger output
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mosquito committed Mar 6, 2024
1 parent 59ff899 commit 4b1895b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions empkins_sync_board_gui/utils/board_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ def _build_update_command(self, command_dict, conn_idx) -> bytes:
)
pulse_length = self._pulse_length.to_bytes(2, "big")
freq = self._freq.to_bytes(2, "big")
if "trigger" in SYNC_SIGNAL_MAPPING_OUTPUT[self._sync_signal].lower():
# trigger signal will break otherwise
freq = DEFAULT_FREQ.to_bytes(2, "big")
stop_trigger = bytes.fromhex(command_dict["stop_trigger"][STOP_TRIGGER_MAPPING[self._stop_trigger]])
degree = self._degree.to_bytes(1, "big")

Expand Down

0 comments on commit 4b1895b

Please sign in to comment.