parent
427bc64ba1
commit
b779b42ffd
@ -153,7 +153,7 @@
|
|||||||
#if CURRENT_STEP_DOWN > 0
|
#if CURRENT_STEP_DOWN > 0
|
||||||
// Decrease current if is_otpw is true and driver is enabled and there's been more than 4 warnings
|
// Decrease current if is_otpw is true and driver is enabled and there's been more than 4 warnings
|
||||||
if (data.is_otpw && st.isEnabled() && st.otpw_count > 4) {
|
if (data.is_otpw && st.isEnabled() && st.otpw_count > 4) {
|
||||||
st.rms_current(st.getMilliamps() - (CURRENT_STEP_DOWN));
|
st.rms_current(MAX(int16_t(st.getMilliamps() - (CURRENT_STEP_DOWN)), 0));
|
||||||
#if ENABLED(REPORT_CURRENT_CHANGE)
|
#if ENABLED(REPORT_CURRENT_CHANGE)
|
||||||
st.printLabel();
|
st.printLabel();
|
||||||
SERIAL_ECHOLNPAIR(" current decreased to ", st.getMilliamps());
|
SERIAL_ECHOLNPAIR(" current decreased to ", st.getMilliamps());
|
||||||
|
Loading…
Reference in New Issue
Block a user