Skip to content

Commit

Permalink
Fix autocenter value saved to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
mitaa authored and berarma committed Sep 6, 2020
1 parent 5aed6f5 commit 3a021af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oversteer/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def get_autocenter(self):
with open(path, "r") as file:
data = file.read()
autocenter = data.strip()
return int(autocenter)
return int(round((int(autocenter) * 100) / 65535))

def set_autocenter(self, autocenter):
autocenter = str(int(65535 * autocenter / 100))
Expand Down

0 comments on commit 3a021af

Please sign in to comment.