mirror of https://github.com/FOME-Tech/fome-fw.git
check for unused variables
This commit is contained in:
parent
3ef4d7c40e
commit
61900c0f18
|
@ -66,9 +66,6 @@ void setProteusHondaElement2003() {
|
|||
|
||||
strcpy(engineConfiguration->vehicleName, "test");
|
||||
|
||||
gppwm_channel *vtsControl = &engineConfiguration->gppwm[0];
|
||||
|
||||
|
||||
#if HW_PROTEUS & EFI_PROD_CODE
|
||||
// engineConfiguration->triggerInputPins[0] = PROTEUS_DIGITAL_2; // crank
|
||||
// engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_4; // intake
|
||||
|
@ -85,6 +82,7 @@ void setProteusHondaElement2003() {
|
|||
engineConfiguration->injectionPins[2] = PROTEUS_LS_6;
|
||||
engineConfiguration->injectionPins[3] = PROTEUS_LS_5;
|
||||
|
||||
gppwm_channel *vtsControl = &engineConfiguration->gppwm[0];
|
||||
vtsControl->pin = PROTEUS_HS_1;
|
||||
engineConfiguration->vvtPins[0] = PROTEUS_HS_2;
|
||||
|
||||
|
|
|
@ -316,8 +316,6 @@ float IdleController::getIdlePosition(float rpm) {
|
|||
auto phase = determinePhase(rpm, targetRpm, tps, vehicleSpeed, crankingTaper);
|
||||
m_lastPhase = phase;
|
||||
|
||||
bool isAutomaticIdle = tps.Valid && engineConfiguration->idleMode == IM_AUTO;
|
||||
|
||||
finishIdleTestIfNeeded();
|
||||
undoIdleBlipIfNeeded();
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ void HellaOilLevelSensor::onEdge(efitick_t nowNt, bool value) {
|
|||
// Defective
|
||||
// invalidate(UnexpectedCode::High);
|
||||
} else {
|
||||
float tempC = interpolateClamped(23, -40, 87, 160, lastPulseMs);
|
||||
// float tempC = interpolateClamped(23, -40, 87, 160, lastPulseMs);
|
||||
// setValidValue(tempC, nowNt);
|
||||
}
|
||||
} else if (m_nextPulse == NextPulse::Level) {
|
||||
|
|
|
@ -153,11 +153,12 @@ void Gm4l6xTransmissionController::set32State(gear_e gear) {
|
|||
if (!vss.Valid) {
|
||||
return;
|
||||
}
|
||||
uint8_t (*pcts)[sizeof(config->tcu_32SpeedBins)/sizeof(config->tcu_32SpeedBins[0])];
|
||||
// TODO: looks unfinished?
|
||||
// uint8_t (*pcts)[sizeof(config->tcu_32SpeedBins)/sizeof(config->tcu_32SpeedBins[0])];
|
||||
int pct = interpolate2d(vss.Value, config->tcu_32SpeedBins, config->tcu_32Vals);
|
||||
shift32Pwm.setSimplePwmDutyCycle(pct*0.01);
|
||||
} else {
|
||||
shift32Pwm.setSimplePwmDutyCycle(0);
|
||||
shift32Pwm.setSimplePwmDutyCycle(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -137,7 +137,6 @@ static void watchDogBuddyCallback(void*) {
|
|||
|
||||
static volatile bool testSchedulingHappened = false;
|
||||
static Timer testScheduling;
|
||||
static efitimems_t testSchedulingStart;
|
||||
|
||||
static void timerValidationCallback(void*) {
|
||||
testSchedulingHappened = true;
|
||||
|
|
|
@ -4,7 +4,6 @@ RUSEFI_CPPOPT = -Werror=shadow
|
|||
|
||||
# ...except these few
|
||||
RUSEFI_OPT += -Wno-error=unused-function
|
||||
RUSEFI_OPT += -Wno-error=unused-variable
|
||||
RUSEFI_OPT += -Wno-error=sign-compare
|
||||
RUSEFI_OPT += -Wno-error=unused-parameter
|
||||
RUSEFI_OPT += -Wno-error=undef
|
||||
|
|
Loading…
Reference in New Issue