Browse Source

BariCUDA changes

Erik van der Zalm 11 years ago
parent
commit
6c45c3f4e7
1 changed files with 2 additions and 24 deletions
  1. 2
    24
      Marlin/planner.cpp

+ 2
- 24
Marlin/planner.cpp View File

440
   unsigned char e_active = 0;
440
   unsigned char e_active = 0;
441
   unsigned char tail_fan_speed = fanSpeed;
441
   unsigned char tail_fan_speed = fanSpeed;
442
   #ifdef BARICUDA
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
   #endif
445
   #endif
448
   block_t *block;
446
   block_t *block;
449
 
447
 
499
 
497
 
500
 #ifdef BARICUDA
498
 #ifdef BARICUDA
501
   #if HEATER_1_PIN > -1
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
       analogWrite(HEATER_1_PIN,tail_valve_pressure);
500
       analogWrite(HEATER_1_PIN,tail_valve_pressure);
512
-    }
513
   #endif
501
   #endif
514
 
502
 
515
   #if HEATER_2_PIN > -1
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
       analogWrite(HEATER_2_PIN,tail_e_to_p_pressure);
504
       analogWrite(HEATER_2_PIN,tail_e_to_p_pressure);
526
-    }
527
   #endif
505
   #endif
528
 #endif
506
 #endif
529
 }
507
 }

Loading…
Cancel
Save