瀏覽代碼

BariCUDA changes

Erik van der Zalm 11 年之前
父節點
當前提交
6c45c3f4e7
共有 1 個文件被更改,包括 2 次插入24 次删除
  1. 2
    24
      Marlin/planner.cpp

+ 2
- 24
Marlin/planner.cpp 查看文件

@@ -440,10 +440,8 @@ void check_axes_activity()
440 440
   unsigned char e_active = 0;
441 441
   unsigned char tail_fan_speed = fanSpeed;
442 442
   #ifdef BARICUDA
443
-  unsigned char valve_pressure = 0;
444
-  unsigned char e_to_p_pressure = 0;
445
-  unsigned char tail_valve_pressure = 0;
446
-  unsigned char tail_e_to_p_pressure = 0;
443
+  unsigned char tail_valve_pressure = ValvePressure;
444
+  unsigned char tail_e_to_p_pressure = EtoPPressure;
447 445
   #endif
448 446
   block_t *block;
449 447
 
@@ -499,31 +497,11 @@ void check_axes_activity()
499 497
 
500 498
 #ifdef BARICUDA
501 499
   #if HEATER_1_PIN > -1
502
-    if (ValvePressure != 0){
503
-      analogWrite(HEATER_1_PIN,ValvePressure); // If buffer is empty use current valve pressure
504
-    }
505
-
506
-    if((ValvePressure == 0) && (valve_pressure ==0)) {
507
-      analogWrite(HEATER_1_PIN, 0);
508
-    }
509
-
510
-    if (ValvePressure != 0 && tail_valve_pressure !=0) { 
511 500
       analogWrite(HEATER_1_PIN,tail_valve_pressure);
512
-    }
513 501
   #endif
514 502
 
515 503
   #if HEATER_2_PIN > -1
516
-    if (EtoPPressure != 0){
517
-      analogWrite(HEATER_2_PIN,EtoPPressure); // If buffer is empty use current EtoP pressure
518
-    }
519
-
520
-    if((EtoPPressure == 0) && (e_to_p_pressure ==0)) {
521
-      analogWrite(HEATER_2_PIN, 0);
522
-    }
523
-
524
-    if (EtoPPressure != 0 && tail_e_to_p_pressure !=0) { 
525 504
       analogWrite(HEATER_2_PIN,tail_e_to_p_pressure);
526
-    }
527 505
   #endif
528 506
 #endif
529 507
 }

Loading…
取消
儲存