Skip to content

Commit

Permalink
convert from ascii int value to int
Browse files Browse the repository at this point in the history
  • Loading branch information
DomAmato authored May 20, 2020
1 parent bd52942 commit cfef0f5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Hologram/HologramCloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,12 @@ def __parse_hologram_compact_result(self, result):
return [ERR_UNKNOWN]

resultList = []
for x in result:
resultList.append(int(x))
if isinstance(result, bytes):
for x in result:
resultList.append(int(chr(x)))
else:
for x in result:
resultList.append(int(x))

if len(resultList) == 0:
resultList = [ERR_UNKNOWN]
Expand Down

0 comments on commit cfef0f5

Please sign in to comment.