Skip to content

Commit

Permalink
at get_sensor_info_ex added default None value for version and extra_…
Browse files Browse the repository at this point in the history
…info
  • Loading branch information
ftylitak authored Oct 16, 2024
1 parent b2025b0 commit 7960388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions microsdi12.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def get_sensor_info(self, address):
def get_sensor_info_ex(self, address):
manufacturer = None
model = None
version = None
extra_info = None
id_cmd_resp = self._send(address + 'I!')
if id_cmd_resp and len(id_cmd_resp) > 20:
manufacturer = id_cmd_resp[3:11].strip()
Expand Down

0 comments on commit 7960388

Please sign in to comment.