Skip to content

Commit 4ed0be7

Browse files
Merge pull request #288 from runger1101001/dev
fix addition error, thanks to nano for finding it!
2 parents aef77f9 + b2efa9c commit 4ed0be7

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)