Skip to content

Commit

Permalink
- fixed bug at showing negative degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
ds committed Dec 17, 2018
1 parent 8aea061 commit 05a1e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HPSU/HPSU.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def timestamp(self):
return (datetime.datetime.now() - epoch).total_seconds() * 1000.0

def toSigned(self, n, cmd):
if cmd["unit"] == "d":
if cmd["unit"] == "deg":
n = n & 0xffff
return (n ^ 0x8000) - 0x8000
else:
Expand Down

0 comments on commit 05a1e31

Please sign in to comment.