🎨 Macros for optional arguments (#21969)
This commit is contained in:
@@ -70,15 +70,9 @@ class TMCStorage {
|
||||
}
|
||||
|
||||
struct {
|
||||
#if ENABLED(HAS_STEALTHCHOP)
|
||||
bool stealthChop_enabled = false;
|
||||
#endif
|
||||
#if ENABLED(HYBRID_THRESHOLD)
|
||||
uint8_t hybrid_thrs = 0;
|
||||
#endif
|
||||
#if ENABLED(USE_SENSORLESS)
|
||||
int16_t homing_thrs = 0;
|
||||
#endif
|
||||
OPTCODE(HAS_STEALTHCHOP, bool stealthChop_enabled = false)
|
||||
OPTCODE(HYBRID_THRESHOLD, uint8_t hybrid_thrs = 0)
|
||||
OPTCODE(USE_SENSORLESS, int16_t homing_thrs = 0)
|
||||
} stored;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user