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