| 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 |
no test coverage detected