Improve ExtUI, fix compiler errors, warnings (#14441)

This commit is contained in:
Marcio Teixeira
2019-06-28 23:23:57 -06:00
committed by Scott Lahteine
parent 14fb683682
commit e6cf7860e8
10 changed files with 80 additions and 31 deletions

View File

@ -68,6 +68,9 @@ public:
#endif
0
);
#if DISABLED(MEASURE_BACKLASH_WHEN_PROBING)
UNUSED(e);
#endif
}
static inline bool has_measurement(const uint8_t e) {
@ -76,6 +79,9 @@ public:
|| (measured_count[e] > 0)
#endif
);
#if DISABLED(MEASURE_BACKLASH_WHEN_PROBING)
UNUSED(e);
#endif
}
static inline bool has_any_measurement() {

View File

@ -985,7 +985,7 @@
st.TCOOLTHRS(0xFFFFF);
return true;
}
void tmc_disable_stallguard(TMC2209Stepper &st, const bool restore_stealth) {
void tmc_disable_stallguard(TMC2209Stepper &st, const bool restore_stealth _UNUSED) {
st.TCOOLTHRS(0);
}