Skip to content

Commit

Permalink
Fix additional syntax errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ragnorc committed Mar 2, 2020
1 parent 556cbaa commit 323aba8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app.py
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion src/arduino.py
Expand Up @@ -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

0 comments on commit 323aba8

Please sign in to comment.