From 323aba8d40a63e0f505553d6b4549e0edcf56825 Mon Sep 17 00:00:00 2001 From: Ragnor Comerford Date: Mon, 2 Mar 2020 22:09:14 +0000 Subject: [PATCH] Fix additional syntax errors. --- src/app.py | 2 +- src/arduino.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.py b/src/app.py index f300b86..cf32069 100644 --- a/src/app.py +++ b/src/app.py @@ -64,7 +64,7 @@ def app_instruction(self, instruction): self.app_instruction(instruction) # ask the question again - def get_pressed_button(self) + def get_pressed_button(self): # Returns the index of the pressed cell button return self.arduino.get_pressed_button() diff --git a/src/arduino.py b/src/arduino.py index 3e7cc72..3552e5b 100644 --- a/src/arduino.py +++ b/src/arduino.py @@ -52,6 +52,6 @@ def ping(cell_index): #TODO: Add timeout self.ser.write(bytearray([self.cell_offset+cell_index,106,0,0])) pong = self.ser.read(4) - while pong[1] != 107 && pong[0] != self.cell_offset+cell_index: + while pong[1] != 107 and pong[0] != self.cell_offset+cell_index: pong = self.ser.read(4) return True