summaryrefslogtreecommitdiff
path: root/Tonokip_Firmware
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-05-02 23:38:20 -0700
committerkliment <kliment.yanev@gmail.com>2011-05-02 23:38:20 -0700
commit8121c06bc0962901862cb1d4bd60d4cf47e538b6 (patch)
tree94b464208f37c4ddf9fa038ae55284e552484a23 /Tonokip_Firmware
parentbc8f7921c908fdb8b8559828366ae8bbbfe7fdd3 (diff)
parent48dc731df4b6d4f68838bad8aa6a5924a069cab5 (diff)
Merge pull request #6 from kludgineer/master.
Added code for M114, Display current position
Diffstat (limited to 'Tonokip_Firmware')
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde
index d171a24..033c0e0 100644
--- a/Tonokip_Firmware/Tonokip_Firmware.pde
+++ b/Tonokip_Firmware/Tonokip_Firmware.pde
@@ -26,6 +26,7 @@
// M106 - Fan on
// M107 - Fan off
// M109 - Wait for current temp to reach target temp.
+// M114 - Display current position
//Custom M Codes
// M80 - Turn on Power Supply
@@ -733,6 +734,17 @@ inline void process_commands()
case 115: // M115
Serial.println("FIRMWARE_NAME:Sprinter FIRMWARE_URL:http%%3A/github.com/kliment/Sprinter/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1");
break;
+
+ case 114: // M114
+ Serial.print("X:");
+ Serial.print(current_x);
+ Serial.print("Y:");
+ Serial.print(current_y);
+ Serial.print("Z:");
+ Serial.print(current_z);
+ Serial.print("E:");
+ Serial.println(current_e);
+ break;
}
}