use code_value_long() instead of (int)code_value()

This commit is contained in:
Greg Alexander 2015-03-07 17:33:15 -05:00
parent 901b03d020
commit b9dfa5cad4

View file

@ -4198,7 +4198,7 @@ inline void gcode_M350() {
*/
inline void gcode_M351() {
#if defined(X_MS1_PIN) && X_MS1_PIN > -1
if (code_seen('S')) switch((int)code_value()) {
if (code_seen('S')) switch(code_value_long()) {
case 1:
for(int i=0;i<NUM_AXIS;i++) if (code_seen(axis_codes[i])) microstep_ms(i, code_value(), -1);
if (code_seen('B')) microstep_ms(4, code_value(), -1);
@ -4397,7 +4397,7 @@ void process_commands() {
}
else if (code_seen('M')) {
switch( (int)code_value() ) {
switch( code_value_long() ) {
#ifdef ULTIPANEL
case 0: // M0 - Unconditional stop - Wait for user button press on LCD
case 1: // M1 - Conditional stop - Wait for user button press on LCD