Fan not be able to be set because in use at VR PWM

#5565
only:alphax-2chan
This commit is contained in:
rusefillc 2023-09-16 11:49:56 -04:00
parent 2f907af198
commit c53ea04c19
1 changed files with 12 additions and 0 deletions

View File

@ -108,6 +108,18 @@ void setBoardConfigOverrides() {
setHellenEnPin(Gpio::H144_OUT_IO3);
}
// todo: is it time for some helper method to work with sets?!
bool isBeforeRevG = hellenBoardId == BOARD_ID_ALPHA2CH_B ||
hellenBoardId == BOARD_ID_ALPHA2CH_C ||
hellenBoardId == BOARD_ID_ALPHA2CH_D ||
hellenBoardId == BOARD_ID_ALPHA2CH_E ||
hellenBoardId == BOARD_ID_ALPHA2CH_F;
if (!isBeforeRevG) {
engineConfiguration->vrThreshold[0].pin = Gpio::Unassigned; // rev G started to use MAX9924
}
engineConfiguration->vrThreshold[1].pin = Gpio::Unassigned; // 2chan never had second VR
setDefaultHellenAtPullUps();
setHellenCan();