prusa3d / Prusa-Firmware

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

Restart USB timer during long moves #4556

Closed gudnimg closed 6 months ago

gudnimg commented 7 months ago

One idea to resolve #4551.

Keep in mind it only affects host prints. Printing with SD card will not reproduce the problem.

G-code to reproduce the problem:

G1 E15 F60 ; plan 15mm extrusion at 1mm/s
G4 S0 ; wait for all planned moves to finish
T1 ; MMU filament change

Make sure to set the Sound settings to Loud to observe the buzzer beeping. Or simply observe that T1 will trigger manual unload.

With this PR, manual unload is not triggered and there is no buzzer beep.

Change in memory: Flash: +48 bytes SRAM: 0 bytes

github-actions[bot] commented 7 months ago

All values in bytes. Δ Delta to base

Target ΔFlash ΔSRAM Used Flash Used SRAM Free Flash Free SRAM
MK3S_MULTILANG 48 0 246782 5656 7170 2536
MK3_MULTILANG 48 0 246072 5663 7880 2529
gudnimg commented 7 months ago

@3d-gussner We may see the same problem with M79 timer if for some reason someone changes M79_TIMEOUT to a much lower value like 10 seconds. But since it only affect UI for now, its low risk.