prusa3d / Prusa-Firmware

Firmware for Original Prusa i3 3D printer by PrusaResearch
GNU General Public License v3.0
2.02k stars 1.05k forks source link

TMC Restore default XY currents after homing #4599

Closed leptun closed 7 months ago

leptun commented 7 months ago

The currents were not properly restored at the end of homing, so the XY axes would remain with the lower homing current, resulting in more skipped steps on the Y axis and worse crash detection.

@3d-gussner please test.

github-actions[bot] commented 7 months ago
Target ΔFlash (bytes) ΔSRAM (bytes)
MK3S_MULTILANG 56 -4
MK3_MULTILANG 56 -4
3d-gussner commented 7 months ago

@leptun I can confirm the default running currents are restored

leptun commented 7 months ago

With this latest commit the homing currents are only temporarely applied, so if the user sets custom currents, the custom currents are restored at homing end or after a crash is detected.