Skip to content

Commit

Permalink
Log sent punch via serial
Browse files Browse the repository at this point in the history
  • Loading branch information
lukipuki committed Apr 2, 2024
1 parent 3afbe24 commit 7ce465b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/yaroc/clients/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ async def send_punch(self, punch: SiPunch) -> bool:
return False
try:
self.writer.write(bytes(punch.raw))
logging.info("Punch sent via serial port")
return True
except serial.serialutil.SerialException as err:
logging.error(f"Fatal serial exception: {err}")
Expand Down

0 comments on commit 7ce465b

Please sign in to comment.