MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / step_current_down

Function step_current_down

Marlin/src/feature/tmc_util.cpp:329–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327
328 template<typename TMC>
329 void step_current_down(TMC &st) {
330 if (st.isEnabled()) {
331 const uint16_t I_rms = st.getMilliamps() - (CURRENT_STEP_DOWN);
332 if (I_rms > 50) {
333 st.rms_current(I_rms);
334 #if ENABLED(REPORT_CURRENT_CHANGE)
335 st.printLabel();
336 SERIAL_ECHOLNPGM(" current decreased to ", I_rms);
337 #endif
338 }
339 }
340 }
341
342 #else
343

Callers 1

monitor_tmc_driversFunction · 0.85

Calls 4

isEnabledMethod · 0.80
getMilliampsMethod · 0.80
printLabelMethod · 0.80
rms_currentMethod · 0.45

Tested by

no test coverage detected