1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-16 11:35:44 +02:00

Fix race condition in Huanyang.h.

- Initial queue before task.
This commit is contained in:
bdring
2020-07-10 16:18:36 -05:00
parent fc6926d6e8
commit a695c65a10
2 changed files with 3 additions and 3 deletions

View File

@@ -108,6 +108,7 @@ void vfd_cmd_task(void* pvParameters) {
void HuanyangSpindle :: init() {
if (! _task_running) { // init can happen many times, we only want to start one task
hy_cmd_queue = xQueueCreate(5, sizeof(hy_command_t));
xTaskCreatePinnedToCore(vfd_cmd_task, // task
"vfd_cmdTaskHandle", // name for task
2048, // size of task stack
@@ -115,8 +116,7 @@ void HuanyangSpindle :: init() {
1, // priority
&vfd_cmdTaskHandle,
0 // core
);
hy_cmd_queue = xQueueCreate(5, sizeof(hy_command_t));
);
_task_running = true;
}

View File

@@ -22,7 +22,7 @@
// Grbl versioning system
#define GRBL_VERSION "1.2a"
#define GRBL_VERSION_BUILD "20200631"
#define GRBL_VERSION_BUILD "20200710"
//#include <sdkconfig.h>
#include <Arduino.h>