Skip to content

Commit 22f1392

Browse files
committed
profile: fix region lock number decoding
Signed-off-by: David Escalona <[email protected]>
1 parent f1b9ac7 commit 22f1392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

digi/xbee/profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ def _parse_xml_firmware_file(self, zip_file):
10391039
# 0: All regions
10401040
self._region_lock = 0
10411041
else:
1042-
self._region_lock = int(fw_version_str[1:2], base=0)
1042+
self._region_lock = int(fw_version_str[1:2], base=16)
10431043
_log.debug(" - Region lock: %d", self._region_lock)
10441044
# Determine protocol.
10451045
br_value = self._raw_settings.get(ATStringCommand.BR.command, None)

0 commit comments

Comments
 (0)