added uuid identification support

This commit is contained in:
jglauche 2011-07-24 00:36:32 +02:00
parent 6731e67015
commit 726a0583a5
2 changed files with 8 additions and 1 deletions

View file

@ -98,6 +98,12 @@ long max_acceleration_units_per_sq_second[] = {1000,1000,50,10000}; // X, Y, Z a
long max_travel_acceleration_units_per_sq_second[] = {500,500,50,500}; // X, Y, Z max acceleration in mm/s^2 for travel moves
#endif
// Machine UUID
// This may be useful if you have multiple machines and wish to identify them by using the M115 command.
// By default we set it to zeros.
char uuid[] = "00000000-0000-0000-0000-000000000000";
//// AD595 THERMOCOUPLE SUPPORT UNTESTED... USE WITH CAUTION!!!!
//// PID settings:

View file

@ -850,7 +850,8 @@ inline void process_commands()
#endif
break;
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");
Serial.print("FIRMWARE_NAME:Sprinter FIRMWARE_URL:http%%3A/github.com/kliment/Sprinter/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1 UUID:");
Serial.println(uuid);
break;
case 114: // M114
Serial.print("X:");