Skip to content

Commit babe668

Browse files
committed
correction of small error
1 parent fca4147 commit babe668

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SensorFusion
2-
version=1.0.5
2+
version=1.0.6
33
author=aster94
44
maintainer=aster94
55
sentence=A library that makes using a IMU a breeze.

Diff for: src/SensorFusion.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ float SF::invSqrt(float x)
6464
conv.i = 0x5f3759df - (conv.i >> 1);
6565
conv.f *= 1.5f - (halfx * conv.f * conv.f);
6666
conv.f *= 1.5f - (halfx * conv.f * conv.f);
67-
return y;
67+
return conv.f;
6868
}
6969

7070
//-------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)