Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davwys committed Dec 4, 2019
2 parents bee52b7 + 299d981 commit f4fbb33
Show file tree
Hide file tree
Showing 10 changed files with 127 additions and 32 deletions.
61 changes: 46 additions & 15 deletions playingDashboard/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified playingDashboard/__pycache__/data_handling.cpython-37.pyc
Binary file not shown.
Binary file modified playingDashboard/__pycache__/serial_functions.cpython-37.pyc
Binary file not shown.
6 changes: 5 additions & 1 deletion playingDashboard/serial_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ def select_port(self, port):

# Enable serial port (system dependent)
if platform.system() is not "Windows":
self.ser = serial.Serial('/dev/cu.' + str(self.selectedPort), 57600) # open serial port
if platform.system() is not "Darwin":
self.ser = serial.Serial(str(self.selectedPort), 57600) # open serial port
else:
self.ser = serial.Serial('/dev/cu.' + str(self.selectedPort), 57600) # open serial port
else:
print("opening port: {}".format(self.selectedPort))
self.ser = serial.Serial(str(self.selectedPort), 57600) # open serial port

time.sleep(1)
Expand Down
87 changes: 72 additions & 15 deletions trainingDashboard/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified trainingDashboard/__pycache__/data_handling.cpython-37.pyc
Binary file not shown.
Binary file modified trainingDashboard/__pycache__/input.cpython-37.pyc
Binary file not shown.
Binary file modified trainingDashboard/__pycache__/log.cpython-37.pyc
Binary file not shown.
Binary file modified trainingDashboard/__pycache__/serial_functions.cpython-37.pyc
Binary file not shown.
5 changes: 4 additions & 1 deletion trainingDashboard/serial_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ def select_port(self, port):

# Enable serial port (system dependent)
if platform.system() is not "Windows":
self.ser = serial.Serial('/dev/cu.' + str(self.selectedPort), 57600) # open serial port
if platform.system() is not "Darwin":
self.ser = serial.Serial(str(self.selectedPort), 57600) # open serial port
else:
self.ser = serial.Serial('/dev/cu.' + str(self.selectedPort), 57600) # open serial port
else:
print("opening port: {}".format(self.selectedPort))
self.ser = serial.Serial(str(self.selectedPort), 57600) # open serial port
Expand Down

0 comments on commit f4fbb33

Please sign in to comment.