chiark / gitweb /
slowdown
authorBernhard <bkubicek@x201.(none)>
Fri, 25 Nov 2011 22:59:30 +0000 (23:59 +0100)
committerBernhard <bkubicek@x201.(none)>
Fri, 25 Nov 2011 22:59:30 +0000 (23:59 +0100)
Marlin/planner.cpp
Marlin/ultralcd.pde

index 8a27a2cc258a358bfd04ff1dd40036de055cfa77..bb2e2a672af42da4cf2fa37688afa56c8f9afb51 100644 (file)
@@ -530,7 +530,7 @@ void plan_buffer_line(const float &x, const float &y, const float &z, const floa
   // slow down when de buffer starts to empty, rather than wait at the corner for a buffer refill
   int moves_queued=(block_buffer_head-block_buffer_tail + BLOCK_BUFFER_SIZE) & (BLOCK_BUFFER_SIZE - 1);
   
-  if(moves_queued < (BLOCK_BUFFER_SIZE * 0.5)) feed_rate = feed_rate / ((BLOCK_BUFFER_SIZE * 0.5)/moves_queued); 
+  if(moves_queued < (BLOCK_BUFFER_SIZE * 0.5)) feed_rate = feed_rate*moves_queued / (BLOCK_BUFFER_SIZE * 0.5); 
 #endif
 
 /*
index 47396e4c176f801807013ac181e20b5730453394..91bb43d431324db029d6e1c0be62c5bfab9d51c5 100644 (file)
@@ -1435,7 +1435,7 @@ void MainMenu::showMainMenu()
     switch(line)\r
     { \r
       case ItemM_watch:\r
-        MENUITEM(  lcdprintPGM(" Watch \003")  ,  BLOCK;status=Main_Status;beepshort(); ) ;\r
+        MENUITEM(  lcdprintPGM(" Watch   \003")  ,  BLOCK;status=Main_Status;beepshort(); ) ;\r
        break;\r
       case ItemM_prepare:\r
         MENUITEM(  if(!tune) lcdprintPGM(" Prepare \x7E");else  lcdprintPGM(" Tune    \x7E"); ,  BLOCK;status=Main_Prepare;beepshort(); ) ;\r