stealthmonkey99 / OctoPrint-PWMBuzzer

M300 gcode handler (PWM buzzer via GPIO) for OctoPrint
6 stars 1 forks source link

#8: add option to suppress sending of m300 commands to printer #9

Closed stealthmonkey99 closed 2 years ago

stealthmonkey99 commented 2 years ago

Description

@andritolion had a great suggestion for adding the ability to suppress M300 commands so that they could use a GPIO passive buzzer instead of the active buzzer built into their printer. I added a setting for this, but did not tie it to the enablement of a hardware buzzer (GPIO) so that, in theory, you could also just disable the handling of M300 commands on your printer altogether.

I also noticed a bug when settings are saved, options get updated to the old settings instead of the new changes. This has been mitigated, making it easier (less confusing?) to test the M300 suppression changes.

Screenshot

image

Test Plan

These changes can be tested by installing the plugin from: https://github.com/stealthmonkey99/OctoPrint-PWMBuzzer/archive/suppress-m300.zip