Skip to content

Commit

Permalink
Update stm32_vcu.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-evnut authored Jan 27, 2025
1 parent 3cb412f commit 6a95e8d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/stm32_vcu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ static void Ms10Task(void)
}
if(opmode==MOD_RUN) Param::SetInt(Param::canctr, (Param::GetInt(Param::canctr) + 1) & 0xF);//Update the OI can counter in RUN mode only

ControlCabHeater(opmode);

//////////////////////////////////////////////////
// MODE CONTROL SECTION //
//////////////////////////////////////////////////
Expand Down Expand Up @@ -673,7 +675,6 @@ static void Ms10Task(void)
ErrorMessage::Post(ERR_PRECHARGE);
opmode = MOD_PCHFAIL;
}
Param::SetInt(Param::opmode, opmode);
break;

case MOD_PCHFAIL:
Expand Down Expand Up @@ -713,16 +714,14 @@ static void Ms10Task(void)
{
opmode = MOD_OFF;
rlyDly=250;//Recharge sequence timer for delayed shutdown
Param::SetInt(Param::opmode, opmode); //set opmode to OFF when leaving charge state
Param::SetInt(Param::opmode, opmode); //set opmode to OFF when leaving charge state
}
break;
}

ControlCabHeater(opmode);
if (Param::GetInt(Param::ShuntType) == 2) SBOX::ControlContactors(opmode,canInterface[Param::GetInt(Param::ShuntCan)]);//BMW contactor box
if (Param::GetInt(Param::ShuntType) == 3) VWBOX::ControlContactors(opmode,canInterface[Param::GetInt(Param::ShuntCan)]);//VW contactor box


}

static void Ms1Task(void)
Expand Down

0 comments on commit 6a95e8d

Please sign in to comment.