blob: 3f582d51c6cc55a0d6533226b1b59366bddb0345 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Fixes the redeclaration error. float vs const float.
--- src/modulator.h.orig 2021-07-12 11:03:15 UTC
+++ src/modulator.h
@@ -70,7 +70,7 @@ struct autorotator {
inline void setdeg (float d) {
deg = d;
if (deg < 0.0f) deg = 0.0f;
- extern float PI_BY_180;
+ extern const float PI_BY_180;
angle.persec = deg * PI_BY_180;
}
|