Skip to content

Commit

Permalink
fix: add log message for written longs
Browse files Browse the repository at this point in the history
  • Loading branch information
bartei81 committed Jan 15, 2024
1 parent 46ba430 commit ed2d4c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rotary_controller_python/utils/base_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def write_long(self, address, value):
value=int(value),
)
self.dm.connected = True
log.info(f"Written {int(value)} to address {address}")
except Exception as e:
self.dm.connected = False
log.error(e.__str__())
Expand Down

0 comments on commit ed2d4c8

Please sign in to comment.