Warnings cleanup from last commit

This commit is contained in:
Josh Stewart 2020-11-16 23:20:30 +11:00
parent 1c3a48de64
commit bfbd04b899
3 changed files with 5 additions and 8 deletions

View File

@ -288,7 +288,7 @@ void can_Command()
//int currentcanCommand = inMsg.id;
#if defined(CORE_TEENSY)
// currentStatus.canin[12] = (inMsg.id);
if (inMsg.id == (configPage9.obd_address + 0x100) || (inMsg.id == 0x7DF))
if ( (inMsg.id == uint16_t(configPage9.obd_address + 0x100)) || (inMsg.id == 0x7DF))
{
// The address is the speeduino specific ecu canbus address
// or the 0x7df(2015 dec) broadcast address
@ -307,7 +307,7 @@ void can_Command()
Can0.write(outMsg); // send the 8 bytes of obd data
}
}
if (inMsg.id == (configPage9.obd_address + 0x100))
if (inMsg.id == uint16_t(configPage9.obd_address + 0x100))
{
// The address is only the speeduino specific ecu canbus address
if (inMsg.buf[1] == 0x09)

View File

@ -224,11 +224,8 @@ byte pinOilPressure;
byte pinWMIEmpty; // Water tank empty sensor
byte pinWMIIndicator; // No water indicator bulb
byte pinWMIEnabled; // ON-OFF ouput to relay/pump/solenoid
#ifdef USE_MC33810
//If the MC33810 IC\s are in use, these are the chip select pins
byte pinMC33810_1_CS;
byte pinMC33810_2_CS;
#endif
byte pinMC33810_1_CS;
byte pinMC33810_2_CS;
#ifdef USE_SPI_EEPROM
byte pinSPIFlash_CS;
#endif

View File

@ -291,7 +291,7 @@ bool integerPID::Compute(bool pOnE)
return true;
}
}
else return false;
return false;
}
bool integerPID::ComputeVVT(uint32_t Sample)