diff options
author | James Churchill <james@rfdesign.com.au> | 2011-07-01 05:49:21 +1000 |
---|---|---|
committer | James Churchill <james@rfdesign.com.au> | 2011-07-01 05:49:21 +1000 |
commit | 9d518424389050394da9d45cbf3bb8f4a6d44e5c (patch) | |
tree | 676f4fbb8f4609b452467611def65ef3da43adb4 | |
parent | 154059b8f608db26c9febf4c73010627ccac27a7 (diff) |
Make M119 take ENDSTOPS_INVERTING into account.
-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 |