Skip to content

Commit b2efa9c

Browse files
author
Richard Unger
committed
fix addition error, thanks to nano for finding it!
1 parent 375c36f commit b2efa9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/foc_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ __attribute__((weak)) float _sin(float a){
1818
else if(i < 128) {
1919
t1 = sine_array[128 - i]; t2 = sine_array[127 - i];
2020
}
21-
else if(i < 196) {
21+
else if(i < 192) {
2222
t1 = -sine_array[-128 + i]; t2 = -sine_array[-127 + i];
2323
}
2424
else {

0 commit comments

Comments
 (0)