Skip to content

Commit

Permalink
Update to show correct Charge Type
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-evnut committed Jan 4, 2025
1 parent a4135cb commit eb48f0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Focci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,19 +143,26 @@ void FocciClass::handle357(uint32_t data[2]) //FOCCI Charge Port Info
if(ChargePort_Status == 0x03)//check ac connected and ready to charge
{
ChargePort_ReadyCharge = true;
Param::SetInt(Param::chgtyp,1);
}
else
{
ChargePort_ReadyCharge = false;
Param::SetInt(Param::chgtyp,0);
}

if(ChargePort_Status == 0x04)//check DC connected and ready to attempt charge
{
ChargePort_ReadyDCFC = true;
Param::SetInt(Param::chgtyp,2);
}
else
{
ChargePort_ReadyDCFC = false;
if(ChargePort_ReadyCharge == false)//if not AC charging
{
Param::SetInt(Param::chgtyp,0);
}
}


Expand Down

0 comments on commit eb48f0e

Please sign in to comment.