Open nivekmai opened 2 years ago
Added some extra logging, it seems that we attempt to turn off the laser, but it's not actually turning off. There also appears to be some state that is lingering, since the laser comes back on at full power when starting the next job.
https://github.com/nivekmai/Snapmaker2-Controller/commit/ceea17bcbe0f248f9741b76d86bf247cceffd1f0
Video of me reproducing the bug with that extra logging: https://youtu.be/7TgBrdZWH8s
I think I'm not understanding how the laser is actually controlled. I expected that it was the setting of tim_pwm that should be enabling/disabling the laser, but there was clearly a command to set it to 0 and that didn't turn it off.
Hello, nivekmai,thank you for your feedback. We recommend that you use our official firmware release for comprarison testing and if the problem persists, please contact our after-sales service.
Hi @snapmaker-lixiaolong, as I stated, this is an issue on master, not on release.
I've submitted a fix as well, I'm just wanting this to be merged into release before the next release build is made.
Reproduced while running my draft pull request so this could be caused by my changes, but I suspect it's something else.
Reproduction steps:
M5
toM5 I
and removingM8
Result: Laser will stay on as the toolhead raises (until roughly 50mm above the work piece). When starting another job (using "start" on the main screen), the laser will turn on to the power setting it was at last (10%). The only way to turn it off is to go to "laser power" in "adjust settings" before starting the job. (Also, I saw some weird stuff where it was turning on during jog moves, but couldn't consistently reproduce that)