Fix M226 sign warning (for most platforms) (#14049)

This commit is contained in:
Tanguy Pruvot 2019-05-18 23:15:48 +02:00 committed by Scott Lahteine
parent 256f810df2
commit 87e7193259

View File

@ -45,7 +45,7 @@ void GcodeSuite::M226() {
case 0: target = LOW; break; case 0: target = LOW; break;
case -1: target = !extDigitalRead(pin); break; case -1: target = !extDigitalRead(pin); break;
} }
while (extDigitalRead(pin) != target) idle(); while (int(extDigitalRead(pin)) != target) idle();
} }
} // pin_state -1 0 1 && pin > -1 } // pin_state -1 0 1 && pin > -1
} // parser.seen('P') } // parser.seen('P')