Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ULTIMAIN_2 board extruder cooling fan pin #23466

Merged
merged 1 commit into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Marlin/src/module/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -888,16 +888,6 @@ int16_t Temperature::getHeaterPower(const heater_id_t heater_id) {
HOTEND_LOOP() {
if (temp_hotend[e].celsius >= EXTRUDER_AUTO_FAN_TEMPERATURE) {
SBI(fanState, pgm_read_byte(&fanBit[e]));
#if MOTHERBOARD == BOARD_ULTIMAIN_2
// For the UM2 the head fan is connected to PJ6, which does not have an Arduino PIN definition. So use direct register access.
// https://github.com/Ultimaker/Ultimaker2Marlin/blob/master/Marlin/temperature.cpp#L553
SBI(DDRJ, 6); SBI(PORTJ, 6);
#endif
}
else {
#if MOTHERBOARD == BOARD_ULTIMAIN_2
SBI(DDRJ, 6); CBI(PORTJ, 6);
#endif
}
}

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/ramps/pins_ULTIMAIN_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
#endif

#ifndef E0_AUTO_FAN_PIN
#define E0_AUTO_FAN_PIN 69
#define E0_AUTO_FAN_PIN 77
#endif

//
Expand Down