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

Commit d268b48

Browse files
committed
npm run format
1 parent b24deef commit d268b48

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/micropython/microbit/__model/accelerometer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ def __update_gesture(self, gesture):
133133
if gesture is not None:
134134
previous_gesture = self.__current_gesture
135135
if previous_gesture != gesture:
136-
self.__set_gesture(gesture)
136+
self.__set_gesture(gesture)

src/micropython/microbit/__model/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@
166166

167167
EXPECTED_INPUT_TEMP = "temperature"
168168

169-
EXPECTED_INPUT_GESTURE = "gesture"
169+
EXPECTED_INPUT_GESTURE = "gesture"

src/micropython/microbit/__model/microbit_model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def __update_buttons(self, new_state):
7676
def __update_motion(self, new_state):
7777
# set motion_x, motion_y, motion_z
7878
for name, direction in CONSTANTS.EXPECTED_INPUT_ACCEL.items():
79-
self.accelerometer._Accelerometer__update_motion(direction, new_state.get(name))
79+
self.accelerometer._Accelerometer__update_motion(
80+
direction, new_state.get(name)
81+
)
8082

8183
def __update_light(self, new_state):
8284
# set light level

0 commit comments

Comments
 (0)