Skip to content

Commit

Permalink
i2c read without writing the register
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYsLab committed Feb 16, 2022
1 parent e404235 commit 9085293
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions telemetrix/telemetrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ def __init__(self, com_port=None, arduino_instance_id=1,
raise RuntimeError(f'Telemetrix4Arduino firmware version')

else:
if self.firmware_version[0] < 5:
raise RuntimeError('Please upgrade the server firmware to version 5.0.0 or greater')
print(f'Telemetrix4Arduino firmware version: {self.firmware_version[0]}.'
f'{self.firmware_version[1]}.{self.firmware_version[2]}')
command = [PrivateConstants.ENABLE_ALL_REPORTS]
Expand Down

0 comments on commit 9085293

Please sign in to comment.