Commit d271f7ed authored by Alyx's avatar Alyx
Browse files

globalized the variable

parent 35f9cecf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@ import threading
display = serial.Serial("/dev/ttyUSB0", 19200, serial.EIGHTBITS, serial.PARITY_NONE, serial.STOPBITS_ONE, timeout=5,
                        rtscts=False)

status="alive"

def stoplisten():
    while True:
@@ -29,9 +28,10 @@ def stoplisten():
            print("failing decode quietly")
        # Check if the received character is 'E'
        if received_char == 'E':
            print("KILL")
            global status
            status="kill"


# Find the ID of the first MIDI device since I only have one
def findAMIDIDevice():
    # get the output of amidi -l which lists onboard midi devices