Skip to content

Commit

Permalink
Fix for safety door, feed hold and cycle start bits
Browse files Browse the repository at this point in the history
uint8_t overflows the 32 bit status register
  • Loading branch information
Glen Cook committed Mar 29, 2020
1 parent 48a79be commit 6776409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grbl/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void system_init()
uint8_t system_control_get_state()
{
uint8_t control_state = 0;
uint8_t pin = (CONTROL_PIN & CONTROL_MASK);
uint32_t pin = (CONTROL_PIN & CONTROL_MASK);
#ifdef INVERT_CONTROL_PIN_MASK
pin ^= INVERT_CONTROL_PIN_MASK;
#endif
Expand Down

0 comments on commit 6776409

Please sign in to comment.