Loading player_functions.py +3 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,8 @@ import threading display = serial.Serial("/dev/ttyUSB0", 19200, serial.EIGHTBITS, serial.PARITY_NONE, serial.STOPBITS_ONE, timeout=5, rtscts=False) global status status="alive" def stoplisten(): while True: received_char = "" Loading Loading @@ -77,6 +78,7 @@ def resetDevice(device_id, mode='GS'): # The main player function def playTrack(track_path, port): global status status="alive" fn_prefix = "player_functions.py/playTrack" track_path = str(track_path).rstrip() Loading Loading
player_functions.py +3 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,8 @@ import threading display = serial.Serial("/dev/ttyUSB0", 19200, serial.EIGHTBITS, serial.PARITY_NONE, serial.STOPBITS_ONE, timeout=5, rtscts=False) global status status="alive" def stoplisten(): while True: received_char = "" Loading Loading @@ -77,6 +78,7 @@ def resetDevice(device_id, mode='GS'): # The main player function def playTrack(track_path, port): global status status="alive" fn_prefix = "player_functions.py/playTrack" track_path = str(track_path).rstrip() Loading