summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-07-09 15:13:26 +0200
committerkliment <kliment.yanev@gmail.com>2011-07-09 15:13:26 +0200
commit207f05883e08c1d253996cb9baa3762bb08ba0f3 (patch)
tree6e1789fcd6712ef1b5842f4d2e83c79b555952b9
parent469e53475a04cab77d5ab4ce787f70ea580b67b9 (diff)
parent7cee3a9c8eeb41c80ae99b1348d7601fd0f0b295 (diff)
Merge branch 'master' into experimental
-rw-r--r--Sprinter/Sprinter.pde26
1 files changed, 26 insertions, 0 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index ae07730..2d95269 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -860,6 +860,32 @@ inline void process_commands()
Serial.print("E:");
Serial.println(current_position[3]);
break;
+ case 119: // M119
+ #if (X_MIN_PIN > -1)
+ Serial.print("x_min:");
+ 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)^ENDSTOPS_INVERTING)?"H":"L");
+ #endif
+ #if (Y_MIN_PIN > -1)
+ Serial.print("y_min:");
+ 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)^ENDSTOPS_INVERTING)?"H":"L");
+ #endif
+ #if (Z_MIN_PIN > -1)
+ Serial.print("z_min:");
+ 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)^ENDSTOPS_INVERTING)?"H":"L");
+ #endif
+ break;
#ifdef RAMP_ACCELERATION
//TODO: update for all axis, use for loop
case 201: // M201