unused-variable is a nice error message to have #5683

This commit is contained in:
Andrey 2023-11-02 20:48:52 -04:00
parent d4e13e5b4c
commit 4eefedcec2
5 changed files with 4 additions and 6 deletions

View File

@ -115,7 +115,7 @@ void setBoardDefaultConfiguration() {
engineConfiguration->vvtPins[0] = Gpio::H144_OUT_PWM4;
gppwm_channel *vtsControl = &engineConfiguration->gppwm[0];
// gppwm_channel *vtsControl = &engineConfiguration->gppwm[0];
// vtsControl->pin = Gpio::H144_OUT_IO6;
engineConfiguration->fuelPumpPin = Gpio::H144_OUT_IO13;

View File

@ -258,7 +258,6 @@ bool HellenBoardIdFinder<NumPins>::measureChargingTimes(int i, float & Tc1_us, f
float Td_us = NT2USF(Td_nt);
#ifdef HELLEN_BOARD_ID_DEBUG
efitick_t nowNt4 = getTimeNowNt();
efiPrintf("* dTime2-1 = %d", (int)(t2 - t1));
efiPrintf("* dTime3-2 = %d", (int)(t3 - t2));
efiPrintf("* dTime4-3 = %d", (int)(t4 - t3));

View File

@ -103,8 +103,8 @@ expected<percent_t> VvtController::getClosedLoop(angle_t target, angle_t observa
}
void VvtController::setOutput(expected<percent_t> outputValue) {
float rpm = Sensor::getOrZero(SensorType::Rpm);
#if EFI_SHAFT_POSITION_INPUT
float rpm = Sensor::getOrZero(SensorType::Rpm);
bool enabled = rpm > engineConfiguration->vvtControlMinRpm
&& engine->rpmCalculator.getSecondsSinceEngineStart(getTimeNowNt()) > engineConfiguration->vvtActivationDelayMs / MS_PER_SECOND
;

View File

@ -34,7 +34,7 @@ static char shaft_signal_msg_index[15];
#if EFI_ENGINE_SNIFFER
#define addEngineSnifferEvent(name, msg) { if (getTriggerCentral()->isEngineSnifferEnabled) { waveChart.addEvent3((name), (msg)); } }
#else
#define addEngineSnifferEvent(n, msg) {}
#define addEngineSnifferEvent(name, msg) { UNUSED(name); }
#endif /* EFI_ENGINE_SNIFFER */
#if EFI_ENGINE_SNIFFER

View File

@ -69,8 +69,7 @@ static size_t _write(void *ip, const uint8_t *bp, size_t n) {
return _writet(ip, bp, n, USB_WRITE_TIMEOUT);
}
static size_t _readt(void *ip, uint8_t *bp, size_t n, sysinterval_t timeout) {
size_t numBytesRead;
//numBytesRead = UsbDeviceCdcCom_ReceiveBuffer(bp, n);
//size_t numBytesRead = UsbDeviceCdcCom_ReceiveBuffer(bp, n);
return (size_t)iqReadTimeout(&usbBuf.fifoRxQueue, bp, n, timeout);
/*