Skip to content

Commit 3dd61bb

Browse files
author
Richard Unger
committed
deconfuse esp32 compiler
1 parent 9b3037b commit 3dd61bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/foc_utils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ __attribute__((weak)) float _sqrtApprox(float number) {//low in fat
9191
// const float f = 1.5F; // better precision
9292

9393
// x = number * 0.5F;
94-
float y = number;
94+
float y;
95+
y = number;
9596
uint32_t i = *reinterpret_cast<uint32_t*>(&y);
9697
i = 0x5f375a86 - ( i >> 1 );
9798
y = *reinterpret_cast<float*>(&i);

0 commit comments

Comments
 (0)