ソースを参照

Merge pull request #1265 from Wurstnase/Development

Expand manage_inactivity #1264
Bernhard Kubicek 10年前
コミット
053b541de8
1個のファイルの変更3行の追加6行の削除
  1. 3
    6
      Marlin/Marlin_main.cpp

+ 3
- 6
Marlin/Marlin_main.cpp ファイルの表示

@@ -204,7 +204,6 @@ CardReader card;
204 204
 #endif
205 205
 float homing_feedrate[] = HOMING_FEEDRATE;
206 206
 bool axis_relative_modes[] = AXIS_RELATIVE_MODES;
207
-bool ignore_stepper_inactivity_queue_check = false;
208 207
 int feedmultiply=100; //100->1 200->2
209 208
 int saved_feedmultiply;
210 209
 int extrudemultiply=100; //100->1 200->2
@@ -3617,9 +3616,7 @@ case 404:  //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or disp
3617 3616
         while(!lcd_clicked()){
3618 3617
           cnt++;
3619 3618
           manage_heater();
3620
-		  ignore_stepper_inactivity_queue_check = true;
3621
-          manage_inactivity();
3622
-		  ignore_stepper_inactivity_queue_check = false;
3619
+          manage_inactivity(false);
3623 3620
           lcd_update();
3624 3621
           if(cnt==0)
3625 3622
           {
@@ -4315,7 +4312,7 @@ void handle_status_leds(void) {
4315 4312
 }
4316 4313
 #endif
4317 4314
 
4318
-void manage_inactivity()
4315
+void manage_inactivity(bool ignore_stepper_queue=false)
4319 4316
 {
4320 4317
 	
4321 4318
 #if defined(KILL_PIN) && KILL_PIN > -1
@@ -4338,7 +4335,7 @@ void manage_inactivity()
4338 4335
   if(stepper_inactive_time)  {
4339 4336
     if( (millis() - previous_millis_cmd) >  stepper_inactive_time )
4340 4337
     {
4341
-      if(blocks_queued() == false && ignore_stepper_inactivity_queue_check != true) {
4338
+      if(blocks_queued() == false && ignore_stepper_queue != true) {
4342 4339
         disable_x();
4343 4340
         disable_y();
4344 4341
         disable_z();

読み込み中…
キャンセル
保存