mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-01 02:21:46 +02:00
Fixed spindle sync for all VFD spindles (#868)
* Implemented H2A spindle sync fix. Untested. * Changed the spindle sync fix to be in the VFD code. * Update Grbl.h Co-authored-by: Stefan de Bruijn <stefan@nubilosoft.com> Co-authored-by: bdring <barton.dring@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
// Grbl versioning system
|
// Grbl versioning system
|
||||||
const char* const GRBL_VERSION = "1.3a";
|
const char* const GRBL_VERSION = "1.3a";
|
||||||
const char* const GRBL_VERSION_BUILD = "20210413";
|
const char* const GRBL_VERSION_BUILD = "20210419";
|
||||||
|
|
||||||
//#include <sdkconfig.h>
|
//#include <sdkconfig.h>
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
@@ -567,6 +567,10 @@ namespace Spindles {
|
|||||||
|
|
||||||
set_speed_command(rpm, rpm_cmd);
|
set_speed_command(rpm, rpm_cmd);
|
||||||
|
|
||||||
|
// Sometimes sync_rpm is retained between different set_speed_command's. We don't want that - we want
|
||||||
|
// spindle sync to kick in after we set the speed. This forces that.
|
||||||
|
_sync_rpm = UINT32_MAX;
|
||||||
|
|
||||||
rpm_cmd.critical = (rpm == 0);
|
rpm_cmd.critical = (rpm == 0);
|
||||||
|
|
||||||
if (xQueueSend(vfd_cmd_queue, &rpm_cmd, 0) != pdTRUE) {
|
if (xQueueSend(vfd_cmd_queue, &rpm_cmd, 0) != pdTRUE) {
|
||||||
|
Reference in New Issue
Block a user