diff --git a/firmware/config/engines/honda_k_dbc.cpp b/firmware/config/engines/honda_k_dbc.cpp index 16fdff4817..70164fe2ab 100644 --- a/firmware/config/engines/honda_k_dbc.cpp +++ b/firmware/config/engines/honda_k_dbc.cpp @@ -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; diff --git a/firmware/controllers/actuators/idle_thread.cpp b/firmware/controllers/actuators/idle_thread.cpp index 405286f609..b8f55a869e 100644 --- a/firmware/controllers/actuators/idle_thread.cpp +++ b/firmware/controllers/actuators/idle_thread.cpp @@ -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(); diff --git a/firmware/controllers/sensors/hella_oil_level.cpp b/firmware/controllers/sensors/hella_oil_level.cpp index dd9d2d91ed..4fc36a2640 100644 --- a/firmware/controllers/sensors/hella_oil_level.cpp +++ b/firmware/controllers/sensors/hella_oil_level.cpp @@ -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) { diff --git a/firmware/controllers/tcu/tc_4l6x.cpp b/firmware/controllers/tcu/tc_4l6x.cpp index 1bb5bf5535..87dfcbc232 100644 --- a/firmware/controllers/tcu/tc_4l6x.cpp +++ b/firmware/controllers/tcu/tc_4l6x.cpp @@ -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); } } diff --git a/firmware/hw_layer/microsecond_timer/microsecond_timer.cpp b/firmware/hw_layer/microsecond_timer/microsecond_timer.cpp index f7a4f66aa7..9de007e534 100644 --- a/firmware/hw_layer/microsecond_timer/microsecond_timer.cpp +++ b/firmware/hw_layer/microsecond_timer/microsecond_timer.cpp @@ -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; diff --git a/firmware/rusefi_rules.mk b/firmware/rusefi_rules.mk index e84b4b5abd..89462d1fdc 100644 --- a/firmware/rusefi_rules.mk +++ b/firmware/rusefi_rules.mk @@ -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