Skip to content

Commit 7a4e9f1

Browse files
committed
fix: parsing MAC addresses with correct format
1 parent e670e06 commit 7a4e9f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/csi_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def get_enrolled_records(self, device_id: str) -> dict[bytes, list[CSIRecord]] |
118118
indiv = [e for e in raw.split("\n") if len(e) > 0]
119119
records = [csi_record_from_base64(enc) for enc in indiv]
120120

121-
mac_bytes = bytes([int(e) for e in file.split("-")])
121+
mac_bytes = bytes([int(e, base=16) for e in file.split("-")])
122122

123123
ret[mac_bytes] = records
124124

0 commit comments

Comments
 (0)