Kaynağa Gözat

Drop FORCE_INLINE from endstops.h

`FORCE_INLINE` seems to have no effect with standard optimization.
Scott Lahteine 8 yıl önce
ebeveyn
işleme
e60224a943
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 5
    5
      Marlin/endstops.h

+ 5
- 5
Marlin/endstops.h Dosyayı Görüntüle

@@ -66,21 +66,21 @@ class Endstops {
66 66
     static void M119();
67 67
 
68 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 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 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 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 80
     // Enable / disable endstop z-probe checking
81 81
     #if HAS_BED_PROBE
82 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 84
     #endif
85 85
 
86 86
   private:

Loading…
İptal
Kaydet