1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-01 10:23:19 +02:00

Made state variable volatile.

This commit is contained in:
bdring
2020-09-23 12:59:58 -05:00
parent 286ed2a104
commit cf21de847a

View File

@@ -39,7 +39,7 @@ enum class State : uint8_t {
// Define global system variables
typedef struct {
State state; // Tracks the current system state of Grbl.
volatile State state; // Tracks the current system state of Grbl.
uint8_t abort; // System abort flag. Forces exit back to main loop for reset.
uint8_t suspend; // System suspend bitflag variable that manages holds, cancels, and safety door.
uint8_t soft_limit; // Tracks soft limit errors for the state machine. (boolean)