Browse Source

🐛 Fix Ultimain 2 E-autofan pin mapping (#23466)

Anson Liu 2 years ago
parent
commit
af93dbfb4f
No account linked to committer's email address
2 changed files with 1 additions and 11 deletions
  1. 0
    10
      Marlin/src/module/temperature.cpp
  2. 1
    1
      Marlin/src/pins/ramps/pins_ULTIMAIN_2.h

+ 0
- 10
Marlin/src/module/temperature.cpp View File

@@ -888,16 +888,6 @@ int16_t Temperature::getHeaterPower(const heater_id_t heater_id) {
888 888
     HOTEND_LOOP() {
889 889
       if (temp_hotend[e].celsius >= EXTRUDER_AUTO_FAN_TEMPERATURE) {
890 890
         SBI(fanState, pgm_read_byte(&fanBit[e]));
891
-        #if MOTHERBOARD == BOARD_ULTIMAIN_2
892
-          // For the UM2 the head fan is connected to PJ6, which does not have an Arduino PIN definition. So use direct register access.
893
-          // https://github.com/Ultimaker/Ultimaker2Marlin/blob/master/Marlin/temperature.cpp#L553
894
-          SBI(DDRJ, 6); SBI(PORTJ, 6);
895
-        #endif
896
-      }
897
-      else {
898
-        #if MOTHERBOARD == BOARD_ULTIMAIN_2
899
-          SBI(DDRJ, 6); CBI(PORTJ, 6);
900
-        #endif
901 891
       }
902 892
     }
903 893
 

+ 1
- 1
Marlin/src/pins/ramps/pins_ULTIMAIN_2.h View File

@@ -98,7 +98,7 @@
98 98
 #endif
99 99
 
100 100
 #ifndef E0_AUTO_FAN_PIN
101
-  #define E0_AUTO_FAN_PIN                     69
101
+  #define E0_AUTO_FAN_PIN                     77
102 102
 #endif
103 103
 
104 104
 //

Loading…
Cancel
Save