|
@@ -517,7 +517,10 @@ inline void process_commands()
|
517
|
517
|
codenum = 0;
|
518
|
518
|
if(code_seen('P')) codenum = code_value(); // milliseconds to wait
|
519
|
519
|
if(code_seen('S')) codenum = code_value() * 1000; // seconds to wait
|
|
520
|
+
|
|
521
|
+ st_synchronize();
|
520
|
522
|
codenum += millis(); // keep track of when we started waiting
|
|
523
|
+
|
521
|
524
|
while(millis() < codenum ){
|
522
|
525
|
manage_heater();
|
523
|
526
|
}
|
|
@@ -579,7 +582,7 @@ inline void process_commands()
|
579
|
582
|
|
580
|
583
|
switch( (int)code_value() )
|
581
|
584
|
{
|
582
|
|
- case 17:
|
|
585
|
+ case 17:
|
583
|
586
|
LCD_MESSAGEPGM("No move.");
|
584
|
587
|
enable_x();
|
585
|
588
|
enable_y();
|
|
@@ -740,7 +743,7 @@ inline void process_commands()
|
740
|
743
|
while((target_direction ? (isHeatingHotend0()) : (isCoolingHotend0())) ||
|
741
|
744
|
(residencyStart > -1 && (millis() - residencyStart) < TEMP_RESIDENCY_TIME*1000) ) {
|
742
|
745
|
#else
|
743
|
|
- while ( target_direction ? (isHeatingHotend0()) : (isCoolingHotend0()) ) {
|
|
746
|
+ while ( target_direction ? (isHeatingHotend0()) : (isCoolingHotend0()&&(CooldownNoWait==false)) ) {
|
744
|
747
|
#endif //TEMP_RESIDENCY_TIME
|
745
|
748
|
if( (millis() - codenum) > 1000 )
|
746
|
749
|
{ //Print Temp Reading every 1 second while heating up/cooling down
|