No false alarm if other bits in port are set.
This commit is contained in:
parent
4f68edbba2
commit
5b97a79b6d
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ void mc_homing_cycle()
|
|||
{
|
||||
uint8_t limits_on;
|
||||
if (bit_istrue(settings.flags,BITFLAG_INVERT_LIMIT_PINS)) {
|
||||
limits_on = (LIMIT_PIN ^ LIMIT_MASK);
|
||||
limits_on = ((~LIMIT_PIN) & LIMIT_MASK);
|
||||
} else {
|
||||
limits_on = (LIMIT_PIN & LIMIT_MASK);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue