kopia lustrzana https://github.com/gnea/grbl
No false alarm if other bits in port are set.
rodzic
4f68edbba2
commit
5b97a79b6d
|
@ -242,7 +242,7 @@ void mc_homing_cycle()
|
||||||
{
|
{
|
||||||
uint8_t limits_on;
|
uint8_t limits_on;
|
||||||
if (bit_istrue(settings.flags,BITFLAG_INVERT_LIMIT_PINS)) {
|
if (bit_istrue(settings.flags,BITFLAG_INVERT_LIMIT_PINS)) {
|
||||||
limits_on = (LIMIT_PIN ^ LIMIT_MASK);
|
limits_on = ((~LIMIT_PIN) & LIMIT_MASK);
|
||||||
} else {
|
} else {
|
||||||
limits_on = (LIMIT_PIN & LIMIT_MASK);
|
limits_on = (LIMIT_PIN & LIMIT_MASK);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue