Skip to content

Commit 0936fca

Browse files
committed
removed tilt on shaking
1 parent b7919cd commit 0936fca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Arduino_AlvikCarrier.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,12 @@ bool Arduino_AlvikCarrier::isShaking(){
761761
}
762762

763763
uint8_t Arduino_AlvikCarrier::getMotion(){
764-
return tilt_status | isShaking();
764+
if (isShaking){
765+
return 0x01;
766+
}
767+
else{
768+
return tilt_status;
769+
}
765770
}
766771

767772

0 commit comments

Comments
 (0)