Skip to content

Commit

Permalink
Fixed wheel range after changing emulation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
berarma committed Aug 11, 2019
1 parent eab8356 commit 770cda3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oversteer/wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import os
import pyudev
import re
import time

logging.basicConfig(level=logging.DEBUG)

Expand Down Expand Up @@ -112,6 +113,7 @@ def set_mode(self, device_id, emulation_mode):
with open(path, "w") as file:
file.write(emulation_mode)
self.wait_for_device(device_id)
time.sleep(3)

def set_range(self, device_id, range):
path = self.device_file(device_id, "range")
Expand Down

0 comments on commit 770cda3

Please sign in to comment.