only:a bit of dead code

This commit is contained in:
Andrey 2024-05-24 12:16:25 -04:00
parent c45425b3ab
commit c2ed0fb519
2 changed files with 0 additions and 10 deletions

View File

@ -53,8 +53,6 @@ static void printPacket(const size_t busIndex, const CANRxFrame &rx) {
}
}
volatile float canMap = 0;
struct CanListenerTailSentinel : public CanListener {
CanListenerTailSentinel()
: CanListener(0)
@ -214,12 +212,6 @@ void processCanRxMessage(const size_t busIndex, const CANRxFrame &frame, efitick
processLuaCan(busIndex, frame);
#if EFI_CANBUS_SLAVE
if (CAN_EID(frame) == engineConfiguration->verboseCanBaseAddress + CAN_SENSOR_1_OFFSET) {
int16_t mapScaled = *reinterpret_cast<const int16_t*>(&frame.data8[0]);
canMap = mapScaled / (1.0 * PACK_MULT_PRESSURE);
} else
#endif
{
obdOnCanPacketRx(frame, busIndex);
}

View File

@ -69,8 +69,6 @@
#define EFI_BOOST_CONTROL TRUE
#define EFI_CANBUS_SLAVE FALSE
#define EFI_BOSCH_YAW FALSE
#define EFI_AUX_SERIAL FALSE