From 9926332c5a6aefd0cb1b96123787595f84bb9e08 Mon Sep 17 00:00:00 2001 From: Infnorm Date: Sat, 16 Sep 2023 15:26:44 -0700 Subject: [PATCH] Allow driver to be considered ok even if only update_rpm is added Not sure if this is correct, but the simulator for example only initializes update_rpm with certain flag settings. --- grbllib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grbllib.c b/grbllib.c index f2c5f294..dd080e8f 100644 --- a/grbllib.c +++ b/grbllib.c @@ -260,7 +260,7 @@ int grbl_enter (void) if((driver.spindle = spindle_select(settings.spindle.flags.type))) { spindle_ptrs_t *spindle = spindle_get(0); - driver.spindle = spindle->get_pwm == NULL || spindle->update_pwm != NULL; + driver.spindle = spindle->get_pwm == NULL || spindle->update_pwm != NULL || spindle->update_rpm != NULL; } else driver.spindle = spindle_select(spindle_add_null());