diff options
Diffstat (limited to 'Tonokip_Firmware')
-rw-r--r-- | Tonokip_Firmware/Tonokip_Firmware.pde | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde index 318ff74..ff1b411 100644 --- a/Tonokip_Firmware/Tonokip_Firmware.pde +++ b/Tonokip_Firmware/Tonokip_Firmware.pde @@ -786,27 +786,27 @@ inline void process_commands() case 119: // M119 #if (X_MIN_PIN > -1) Serial.print("x_min:"); - Serial.println(digitalRead(X_MIN_PIN)?"H":"L"); + Serial.println((digitalRead(X_MIN_PIN)^ENDSTOPS_INVERTING)?"H":"L"); #endif #if (X_MAX_PIN > -1) Serial.print("x_max:"); - Serial.println(digitalRead(X_MAX_PIN)?"H":"L"); + Serial.println((digitalRead(X_MAX_PIN)^ENDSTOPS_INVERTING)?"H":"L"); #endif #if (Y_MIN_PIN > -1) Serial.print("y_min:"); - Serial.println(digitalRead(Y_MIN_PIN)?"H":"L"); + Serial.println((digitalRead(Y_MIN_PIN)^ENDSTOPS_INVERTING)?"H":"L"); #endif #if (Y_MAX_PIN > -1) Serial.print("y_max:"); - Serial.println(digitalRead(Y_MAX_PIN)?"H":"L"); + Serial.println((digitalRead(Y_MAX_PIN)^ENDSTOPS_INVERTING)?"H":"L"); #endif #if (Z_MIN_PIN > -1) Serial.print("z_min:"); - Serial.println(digitalRead(Z_MIN_PIN)?"H":"L"); + Serial.println((digitalRead(Z_MIN_PIN)^ENDSTOPS_INVERTING)?"H":"L"); #endif #if (Z_MAX_PIN > -1) Serial.print("z_max:"); - Serial.println(digitalRead(Z_MAX_PIN)?"H":"L"); + Serial.println((digitalRead(Z_MAX_PIN)^ENDSTOPS_INVERTING)?"H":"L"); #endif break; #ifdef RAMP_ACCELERATION |