Skip to content

Commit

Permalink
try to encode some serial port recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
cpmpercussion committed Aug 22, 2024
1 parent 927eaab commit a807b1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion impsy/impsio.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ def send(self, output_values) -> None:
# click.secho(f"Serial out: {output_message}")
if self.serial is not None:
self.serial.write(output_message.encode())

else:
# try to reconnect -- may as well, alternative is just never working.
self.connect()


def handle(self) -> None:
"""read in the serial bytes and process lines into value lists for IMPSY"""
Expand Down

0 comments on commit a807b1b

Please sign in to comment.