Correct typo
This commit is contained in:
parent
02ba7cfdb8
commit
0f7391c421
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ from adafruit_circuitplayground.express import cpx
|
||||||
|
|
||||||
def upright(x, y, z):
|
def upright(x, y, z):
|
||||||
x_up = abs(x) < accel_threshold
|
x_up = abs(x) < accel_threshold
|
||||||
y_up = abs(x) < accel_threshold
|
y_up = abs(y) < accel_threshold
|
||||||
z_up = abs(9.8 - z) < accel_threshold
|
z_up = abs(9.8 - z) < accel_threshold
|
||||||
return x_up and y_up and z_up
|
return x_up and y_up and z_up
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue