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

PCSCan.cpp msg 2B2 bug fix #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions Software/stm32-M3-PCS/src/PCSCan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ void PCSCan::Msg2B2()
bytes[0]=PCS_Power_Req & 0xFF;//KW scale 0.001 16 bit unsigned in bytes 0 and 1. e.g. 0x0578 = 1400 dec = 1400Watts=1.4kW.
bytes[1]=PCS_Power_Req >> 8;
if(DigIo::chena_out.Get()) bytes[2]=0x00;//Set charger disabled.
if(!DigIo::chena_out.Get()) bytes[0]=0x02;//Set charger enabled.
if(!DigIo::chena_out.Get()) bytes[2]=0x02;//Set charger enabled.
bytes[3]=0x00;
bytes[4]=0x00;
Can::GetInterface(0)->Send(0x2B2, (uint32_t*)bytes,5);
Expand All @@ -385,7 +385,7 @@ void PCSCan::Msg2B2()
bytes[0]=PCS_Power_Req & 0xFF;//KW scale 0.001 16 bit unsigned in bytes 0 and 1. e.g. 0x0578 = 1400 dec = 1400Watts=1.4kW.
bytes[1]=PCS_Power_Req >> 8;
if(DigIo::chena_out.Get()) bytes[2]=0x00;//Set charger disabled.
if(!DigIo::chena_out.Get()) bytes[0]=0x02;//Set charger enabled.
if(!DigIo::chena_out.Get()) bytes[2]=0x02;//Set charger enabled.
Can::GetInterface(0)->Send(0x2B2, (uint32_t*)bytes,3);
}

Expand Down