diff --git a/OutGaugeInterpreter.py b/OutGaugeInterpreter.py index 0074bef..1c5416f 100644 --- a/OutGaugeInterpreter.py +++ b/OutGaugeInterpreter.py @@ -122,12 +122,14 @@ def runningThread(): firstRun=False try: - if (tkDataTypeOut.get() == outputValue.SPEED): + if (tkDataTypeOut.get() == outputValue.SPEED.value): kmh = kmh*3.6 toPi.write(str(kmh).encode()+":".encode()) except: print("arduino disconnected please check connection\n") + + #code runs from here<----------------------------------------------------------------------------------------------------------- @@ -157,6 +159,7 @@ def startStopButtonFunc(): appState = ProgramState.WAITNG statusTextVar.set("Waiting...") stopThread = True + ##GUI init rootFrameGui= tkinter.Tk()