summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde
index 508becf..26b6af7 100644
--- a/Tonokip_Firmware/Tonokip_Firmware.pde
+++ b/Tonokip_Firmware/Tonokip_Firmware.pde
@@ -59,6 +59,7 @@ void kill(byte debug);
// 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
@@ -70,6 +71,8 @@ void kill(byte debug);
// M25 - Pause SD print
// M26 - Set SD position in bytes (M26 S12345)
// M27 - Report SD print status
+// M28 - Start SD write (M28 filename.g)
+// M29 - Stop SD write
// M81 - Turn off Power Supply
// M82 - Set E codes absolute (default)
// M83 - Set E codes relative while in Absolute Coordinates (G90) mode
@@ -764,6 +767,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;
}
}