Skip to content

Commit

Permalink
driver/serialdriver: add __str__
Browse files Browse the repository at this point in the history
Used in the logging output since it implements the ConsoleProtocol.

Signed-off-by: Rouven Czerwinski <[email protected]>
  • Loading branch information
Emantor committed Apr 27, 2023
1 parent d4d6adf commit dda0b56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions labgrid/driver/serialdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,6 @@ def close(self):
if self.status:
self.serial.close()
self.status = 0

def __str__(self):
return f"SerialDriver({self.target.name})"

0 comments on commit dda0b56

Please sign in to comment.