Browse Source

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

pull/1/head
Tanguy Pruvot 5 years ago
committed by Scott Lahteine
parent
commit
87e7193259
  1. 2
      Marlin/src/gcode/control/M226.cpp

2
Marlin/src/gcode/control/M226.cpp

@ -45,7 +45,7 @@ void GcodeSuite::M226() {
case 0: target = LOW; 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
} // parser.seen('P')

Loading…
Cancel
Save