diff options
author | kliment <kliment.yanev@gmail.com> | 2011-07-23 15:42:06 -0700 |
---|---|---|
committer | kliment <kliment.yanev@gmail.com> | 2011-07-23 15:42:06 -0700 |
commit | 288dc6af49018579d073fe5b0ff7fffd14c5d7e8 (patch) | |
tree | 0b840269e796cd7c71fd6a0a3df60d72a50c4ba6 | |
parent | 6731e67015772678813e40f55c49816e84da2394 (diff) | |
parent | 726a0583a541bb021ae79d83fe92a206aa969910 (diff) |
Merge pull request #55 from Joaz/uuid
added uuid identification support
-rw-r--r-- | Sprinter/Configuration.h | 6 | ||||
-rw-r--r-- | Sprinter/Sprinter.pde | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Sprinter/Configuration.h b/Sprinter/Configuration.h index 5d64c7b..bbc2cfe 100644 --- a/Sprinter/Configuration.h +++ b/Sprinter/Configuration.h @@ -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: diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde index b0400cd..dc26b1c 100644 --- a/Sprinter/Sprinter.pde +++ b/Sprinter/Sprinter.pde @@ -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:"); |