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

Commit

Permalink
Merge branch 'users/t-vali/light-temp-accel-sensors' into users/t-anm…
Browse files Browse the repository at this point in the history
…ah/sensor-integration
  • Loading branch information
andreamah committed Feb 12, 2020
2 parents 58f97a5 + d7ff9f4 commit d1a4f3a
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 d1a4f3a

Please sign in to comment.