mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-01 18:32:37 +02:00
Error message on PWM frequency 0
This commit is contained in:
@@ -33,6 +33,11 @@
|
||||
|
||||
namespace Spindles {
|
||||
void PWM::init() {
|
||||
if (_pwm_freq == 0) {
|
||||
log_error("Spindle PWM frequency is 0.");
|
||||
return;
|
||||
}
|
||||
|
||||
get_pins_and_settings();
|
||||
|
||||
if (_output_pin.undefined()) {
|
||||
|
Reference in New Issue
Block a user