Skip to content

Commit

Permalink
Merge pull request #8 from morbith-dqtz/master
Browse files Browse the repository at this point in the history
Adds support to unpack 64bit floats
  • Loading branch information
artfwo authored Feb 15, 2024
2 parents d997d42 + 42337ab commit d729e0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiosc.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def parse_message(packet):
elif t == 'f':
len = 4
value, tail = struct.unpack('>f', tail[:len])[0], tail[len:]
elif t == 'd' :
len = 8
value, tail = struct.unpack('>d', tail[:len])[0], tail[len:]
elif t == 'h':
len = 8
value, tail = struct.unpack('>q', tail[:len])[0], tail[len:]
Expand Down

0 comments on commit d729e0e

Please sign in to comment.