Code: Select all
void BMW_E65::handle130(uint32_t data[2])
{
uint8_t* bytes = (uint8_t*)data;
/*
if ((bytes[0] == 0x45) || (bytes[0] == 0x55))
{
// 0x45 is run, 0x55 is engine crank request
terminal15On = true;
}
else
{
terminal15On = false;
}
*/
if ((bytes[0] & 0x01) > 0)
{
terminalROn = true;
}
else
{
terminalROn = false;
}
if ((bytes[0] & 0x04) > 0)
{
terminal15On = true;
}
else
{
terminal15On = false;
}
if ((bytes[0] & 0x10) > 0)
{
terminal50On = true;
}
else
{
terminal50On = false;
}
if ((bytes[2] & 0x08) > 0)
{
StartButt = true;
}
else
{
StartButt = false;
}
}