Browse Source

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

Tanguy Pruvot 5 years ago
parent
commit
87e7193259
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/control/M226.cpp

+ 1
- 1
Marlin/src/gcode/control/M226.cpp View File

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

Loading…
Cancel
Save