Skip to content

Commit d30b548

Browse files
authored
Optimize BLTouch code for size (#21477)
1 parent f587a4e commit d30b548

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Marlin/src/feature/bltouch.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -74,33 +74,33 @@ class BLTouch {
7474
static bool last_written_mode; // Initialized by settings.load, 0 = Open Drain; 1 = 5V Drain
7575

7676
// DEPLOY and STOW are wrapped for error handling - these are used by homing and by probing
77-
FORCE_INLINE static bool deploy() { return deploy_proc(); }
78-
FORCE_INLINE static bool stow() { return stow_proc(); }
79-
FORCE_INLINE static bool status() { return status_proc(); }
77+
static bool deploy() { return deploy_proc(); }
78+
static bool stow() { return stow_proc(); }
79+
static bool status() { return status_proc(); }
8080

8181
// Native BLTouch commands ("Underscore"...), used in lcd menus and internally
82-
FORCE_INLINE static void _reset() { command(BLTOUCH_RESET, BLTOUCH_RESET_DELAY); }
82+
static void _reset() { command(BLTOUCH_RESET, BLTOUCH_RESET_DELAY); }
8383

84-
FORCE_INLINE static void _selftest() { command(BLTOUCH_SELFTEST, BLTOUCH_DELAY); }
84+
static void _selftest() { command(BLTOUCH_SELFTEST, BLTOUCH_DELAY); }
8585

86-
FORCE_INLINE static void _set_SW_mode() { command(BLTOUCH_SW_MODE, BLTOUCH_DELAY); }
87-
FORCE_INLINE static void _reset_SW_mode() { if (triggered()) _stow(); else _deploy(); }
86+
static void _set_SW_mode() { command(BLTOUCH_SW_MODE, BLTOUCH_DELAY); }
87+
static void _reset_SW_mode() { if (triggered()) _stow(); else _deploy(); }
8888

89-
FORCE_INLINE static void _set_5V_mode() { command(BLTOUCH_5V_MODE, BLTOUCH_SET5V_DELAY); }
90-
FORCE_INLINE static void _set_OD_mode() { command(BLTOUCH_OD_MODE, BLTOUCH_SETOD_DELAY); }
91-
FORCE_INLINE static void _mode_store() { command(BLTOUCH_MODE_STORE, BLTOUCH_MODE_STORE_DELAY); }
89+
static void _set_5V_mode() { command(BLTOUCH_5V_MODE, BLTOUCH_SET5V_DELAY); }
90+
static void _set_OD_mode() { command(BLTOUCH_OD_MODE, BLTOUCH_SETOD_DELAY); }
91+
static void _mode_store() { command(BLTOUCH_MODE_STORE, BLTOUCH_MODE_STORE_DELAY); }
9292

93-
FORCE_INLINE static void _deploy() { command(BLTOUCH_DEPLOY, BLTOUCH_DEPLOY_DELAY); }
94-
FORCE_INLINE static void _stow() { command(BLTOUCH_STOW, BLTOUCH_STOW_DELAY); }
93+
static void _deploy() { command(BLTOUCH_DEPLOY, BLTOUCH_DEPLOY_DELAY); }
94+
static void _stow() { command(BLTOUCH_STOW, BLTOUCH_STOW_DELAY); }
9595

96-
FORCE_INLINE static void mode_conv_5V() { mode_conv_proc(true); }
97-
FORCE_INLINE static void mode_conv_OD() { mode_conv_proc(false); }
96+
static void mode_conv_5V() { mode_conv_proc(true); }
97+
static void mode_conv_OD() { mode_conv_proc(false); }
9898

9999
static bool triggered();
100100

101101
private:
102-
FORCE_INLINE static bool _deploy_query_alarm() { return command(BLTOUCH_DEPLOY, BLTOUCH_DEPLOY_DELAY); }
103-
FORCE_INLINE static bool _stow_query_alarm() { return command(BLTOUCH_STOW, BLTOUCH_STOW_DELAY) == STOW_ALARM; }
102+
static bool _deploy_query_alarm() { return command(BLTOUCH_DEPLOY, BLTOUCH_DEPLOY_DELAY); }
103+
static bool _stow_query_alarm() { return command(BLTOUCH_STOW, BLTOUCH_STOW_DELAY) == STOW_ALARM; }
104104

105105
static void clear();
106106
static bool command(const BLTCommand cmd, const millis_t &ms);

0 commit comments

Comments
 (0)