summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2012-06-07 08:12:41 -0700
committerkliment <kliment.yanev@gmail.com>2012-06-07 08:12:41 -0700
commit2ac9c3e24dbb34292142e14b1080cde582ed94bf (patch)
treed9b1bbedb2f4d80f5feafef363f0a13d2d8f9f33
parent648b25444db930e95de7306cb7542a8d6a969075 (diff)
parent862b63b387707b9f18f56e4c7d51e4fea5a47ce2 (diff)
Merge pull request #182 from blddk/experimental
Added M400 to synchronize the motion queue
-rw-r--r--Sprinter/Sprinter.pde7
1 files changed, 7 insertions, 0 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index e76f1c4..fafd1e5 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -213,6 +213,8 @@ void __cxa_pure_virtual(){};
// M303 - PID relay autotune S<temperature> sets the target temperature. (default target temperature = 150C)
+// M400 - Finish all moves
+
// M500 - stores paramters in EEPROM
// M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
// M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
@@ -1811,6 +1813,11 @@ FORCE_INLINE void process_commands()
}
break;
#endif
+ case 400: // M400 finish all moves
+ {
+ st_synchronize();
+ }
+ break;
#ifdef USE_EEPROM_SETTINGS
case 500: // Store settings in EEPROM
{