Browse Source

Drop FORCE_INLINE from endstops.h

`FORCE_INLINE` seems to have no effect with standard optimization.
Scott Lahteine 8 years ago
parent
commit
e60224a943
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      Marlin/endstops.h

+ 5
- 5
Marlin/endstops.h View File

66
     static void M119();
66
     static void M119();
67
 
67
 
68
     // Enable / disable endstop checking globally
68
     // Enable / disable endstop checking globally
69
-    static FORCE_INLINE void enable_globally(bool onoff=true) { enabled_globally = enabled = onoff; }
69
+    static void enable_globally(bool onoff=true) { enabled_globally = enabled = onoff; }
70
 
70
 
71
     // Enable / disable endstop checking
71
     // Enable / disable endstop checking
72
-    static FORCE_INLINE void enable(bool onoff=true) { enabled = onoff; }
72
+    static void enable(bool onoff=true) { enabled = onoff; }
73
 
73
 
74
     // Disable / Enable endstops based on ENSTOPS_ONLY_FOR_HOMING and global enable
74
     // Disable / Enable endstops based on ENSTOPS_ONLY_FOR_HOMING and global enable
75
-    static FORCE_INLINE void not_homing() { enabled = enabled_globally; }
75
+    static void not_homing() { enabled = enabled_globally; }
76
 
76
 
77
     // Clear endstops (i.e., they were hit intentionally) to suppress the report
77
     // Clear endstops (i.e., they were hit intentionally) to suppress the report
78
-    static FORCE_INLINE void hit_on_purpose() { endstop_hit_bits = 0; }
78
+    static void hit_on_purpose() { endstop_hit_bits = 0; }
79
 
79
 
80
     // Enable / disable endstop z-probe checking
80
     // Enable / disable endstop z-probe checking
81
     #if HAS_BED_PROBE
81
     #if HAS_BED_PROBE
82
       static volatile bool z_probe_enabled;
82
       static volatile bool z_probe_enabled;
83
-      static FORCE_INLINE void enable_z_probe(bool onoff=true) { z_probe_enabled = onoff; }
83
+      static void enable_z_probe(bool onoff=true) { z_probe_enabled = onoff; }
84
     #endif
84
     #endif
85
 
85
 
86
   private:
86
   private:

Loading…
Cancel
Save