Fixed atomic access to flags in sys.execute.
This seems to fix the bug that caused Grbl to hang during some operations, especially jogging.
This commit is contained in:
parent
8ed8005f6c
commit
015d5fa191
7 changed files with 20 additions and 20 deletions
4
system.c
4
system.c
|
|
@ -46,9 +46,9 @@ ISR(PINOUT_INT_vect)
|
|||
if (bit_isfalse(PINOUT_PIN,bit(PIN_RESET))) {
|
||||
mc_reset();
|
||||
} else if (bit_isfalse(PINOUT_PIN,bit(PIN_FEED_HOLD))) {
|
||||
sys.execute |= EXEC_FEED_HOLD;
|
||||
bit_true(sys.execute, EXEC_FEED_HOLD);
|
||||
} else if (bit_isfalse(PINOUT_PIN,bit(PIN_CYCLE_START))) {
|
||||
sys.execute |= EXEC_CYCLE_START;
|
||||
bit_true(sys.execute, EXEC_CYCLE_START);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue