Browse Source

Merge pull request #2180 from thinkyhead/fix_radian

Fix DEGREES macro
AnHardt 10 years ago
parent
commit
a8a8f236d2
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin.h

+ 1
- 1
Marlin/Marlin.h View File

36
 #define TEST(n,b) (((n)&BIT(b))!=0)
36
 #define TEST(n,b) (((n)&BIT(b))!=0)
37
 #define SET_BIT(n,b,value) (n) ^= ((-value)^(n)) & (BIT(b))
37
 #define SET_BIT(n,b,value) (n) ^= ((-value)^(n)) & (BIT(b))
38
 #define RADIANS(d) ((d)*M_PI/180.0)
38
 #define RADIANS(d) ((d)*M_PI/180.0)
39
-#define DEGREES(r) ((d)*180.0/M_PI)
39
+#define DEGREES(r) ((r)*180.0/M_PI)
40
 #define NOLESS(v,n) do{ if (v < n) v = n; }while(0)
40
 #define NOLESS(v,n) do{ if (v < n) v = n; }while(0)
41
 #define NOMORE(v,n) do{ if (v > n) v = n; }while(0)
41
 #define NOMORE(v,n) do{ if (v > n) v = n; }while(0)
42
 
42
 

Loading…
Cancel
Save