We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bbaed4 commit a562876Copy full SHA for a562876
NeoTrellisM4_Dice/code.py
@@ -131,8 +131,8 @@ def shaken():
131
x, y, z = accelerometer.acceleration
132
if previous_reading[0] is not None:
133
result = (math.fabs(previous_reading[0] - x) > bound and
134
- math.fabs(previous_reading[1] - y) > bound and
135
- math.fabs(previous_reading[2] - z) > bound)
+ math.fabs(previous_reading[1] - y) > bound and
+ math.fabs(previous_reading[2] - z) > bound)
136
previous_reading = (x, y, z)
137
return result
138
0 commit comments