Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
Updated for PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Vandy Liu committed Feb 12, 2020
1 parent b46af05 commit d7ff9f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/microbit/__model/accelerometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ def __set_accel(self, axis, accel):
def __set_gesture(self, gesture):
if gesture in CONSTANTS.GESTURES:
self.__current_gesture = gesture
else:
elif gesture == "":
self.__current_gesture = ""
else:
raise ValueError(CONSTANTS.INVALID_GESTURE_ERR)

def __add_current_gesture_to_gesture_lists(self):
if self.__current_gesture in CONSTANTS.GESTURES:
Expand Down

0 comments on commit d7ff9f4

Please sign in to comment.