diff --git a/Grbl_Esp32/grbl.h b/Grbl_Esp32/grbl.h index d93c3618..4203e775 100644 --- a/Grbl_Esp32/grbl.h +++ b/Grbl_Esp32/grbl.h @@ -20,7 +20,7 @@ // Grbl versioning system #define GRBL_VERSION "1.1f" -#define GRBL_VERSION_BUILD "20190602" +#define GRBL_VERSION_BUILD "20190616" //#include #include diff --git a/Grbl_Esp32/servo_pen.cpp b/Grbl_Esp32/servo_pen.cpp index 513d9114..6e575bfa 100644 --- a/Grbl_Esp32/servo_pen.cpp +++ b/Grbl_Esp32/servo_pen.cpp @@ -23,6 +23,8 @@ #ifdef USE_PEN_SERVO +static TaskHandle_t servoSyncTaskHandle = 0; + // used to delay turn on bool servo_pen_enable = false; diff --git a/Grbl_Esp32/servo_pen.h b/Grbl_Esp32/servo_pen.h index 1d1a0364..ab58bbcb 100644 --- a/Grbl_Esp32/servo_pen.h +++ b/Grbl_Esp32/servo_pen.h @@ -67,8 +67,6 @@ #ifndef servo_h #define servo_h -static TaskHandle_t servoSyncTaskHandle = 0; - void servo_init(); void servo_disable(); bool validate_servo_settings(bool verbose); diff --git a/Grbl_Esp32/solenoid_pen.cpp b/Grbl_Esp32/solenoid_pen.cpp index 3729124d..6b0b30c5 100644 --- a/Grbl_Esp32/solenoid_pen.cpp +++ b/Grbl_Esp32/solenoid_pen.cpp @@ -23,6 +23,8 @@ #ifdef USE_PEN_SOLENOID +static TaskHandle_t solenoidSyncTaskHandle = 0; + // used to delay turn on bool solenoid_pen_enable; uint16_t solenoide_hold_count; diff --git a/Grbl_Esp32/solenoid_pen.h b/Grbl_Esp32/solenoid_pen.h index 313b1078..cd7c328a 100644 --- a/Grbl_Esp32/solenoid_pen.h +++ b/Grbl_Esp32/solenoid_pen.h @@ -46,7 +46,7 @@ #ifndef solenoid_h #define solenoid_h -static TaskHandle_t solenoidSyncTaskHandle = 0; + void solenoid_init(); void solenoid_disable(); void solenoidSyncTask(void *pvParameters); diff --git a/Grbl_Esp32/stepper.cpp b/Grbl_Esp32/stepper.cpp index 2f198eaa..a395432b 100644 --- a/Grbl_Esp32/stepper.cpp +++ b/Grbl_Esp32/stepper.cpp @@ -198,6 +198,58 @@ static st_prep_t prep; */ + +#ifdef USE_RMT_STEPS +// Set stepper pulse output pins +inline IRAM_ATTR static void stepperRMT_Outputs() +{ + +#ifdef X_STEP_PIN + if(st.step_outbits & (1<