diff --git a/ecmc_plugin_grbl/ecmcGrbl.cpp b/ecmc_plugin_grbl/ecmcGrbl.cpp index a13d5e9..96ad669 100644 --- a/ecmc_plugin_grbl/ecmcGrbl.cpp +++ b/ecmc_plugin_grbl/ecmcGrbl.cpp @@ -802,11 +802,11 @@ int ecmcGrbl::setReset(int reset) { } int ecmcGrbl::getBusy() { - return getEcmcEpicsIOCState()!=16 || writerBusy_ || stepperInterruptEnable; + return getEcmcEpicsIOCState()!=16 || writerBusy_ || stepperInterruptEnable || !grblInitDone_; } int ecmcGrbl::getParserBusy() { - return getEcmcEpicsIOCState()!=16 || writerBusy_; + return getEcmcEpicsIOCState()!=16 || writerBusy_ || !grblInitDone_; } int ecmcGrbl::getCodeRowNum() { diff --git a/grbl/grbl_spindle_control.c b/grbl/grbl_spindle_control.c index 0905bdb..46ad3d8 100644 --- a/grbl/grbl_spindle_control.c +++ b/grbl/grbl_spindle_control.c @@ -28,7 +28,7 @@ void spindle_init() { - printf("%s:%s:%d Not supported yet..\n",__FILE__,__FUNCTION__,__LINE__); + //printf("%s:%s:%d Not supported yet..\n",__FILE__,__FUNCTION__,__LINE__); #ifdef VARIABLE_SPINDLE // Configure variable spindle PWM and enable pin, if requried. On the Uno, PWM and enable are @@ -107,7 +107,7 @@ uint8_t spindle_get_state() // Called by spindle_init(), spindle_set_speed(), spindle_set_state(), and mc_reset(). void spindle_stop() { - printf("%s:%s:%d Not supported yet..\n",__FILE__,__FUNCTION__,__LINE__); + //printf("%s:%s:%d Not supported yet..\n",__FILE__,__FUNCTION__,__LINE__); //#ifdef VARIABLE_SPINDLE // SPINDLE_TCCRA_REGISTER &= ~(1<