Bläddra i källkod

Patch M_PI in Marduino.h

Scott Lahteine 6 år sedan
förälder
incheckning
44e4f853c8
2 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4
    0
      Marlin/src/HAL/shared/Marduino.h
  2. 0
    4
      Marlin/src/core/macros.h

+ 4
- 0
Marlin/src/HAL/shared/Marduino.h Visa fil

@@ -64,3 +64,7 @@
64 64
 #define RST_JTAG       16
65 65
 #define RST_SOFTWARE   32
66 66
 #define RST_BACKUP     64
67
+
68
+#ifndef M_PI
69
+  #define M_PI 3.14159265358979323846f
70
+#endif

+ 0
- 4
Marlin/src/core/macros.h Visa fil

@@ -84,10 +84,6 @@
84 84
 #define SBI32(n,b) (n |= _BV32(b))
85 85
 #define CBI32(n,b) (n &= ~_BV32(b))
86 86
 
87
-// Macros for maths shortcuts
88
-#undef M_PI
89
-#define M_PI 3.14159265358979323846f
90
-
91 87
 #define RADIANS(d) ((d)*float(M_PI)/180.0f)
92 88
 #define DEGREES(r) ((r)*180.0f/float(M_PI))
93 89
 #define HYPOT2(x,y) (sq(x)+sq(y))

Laddar…
Avbryt
Spara