get rid of redundant combinedConditions indicator

This commit is contained in:
kifir 2024-06-11 18:46:49 +03:00 committed by rusefillc
parent 8055596c43
commit 9909d7e035
2 changed files with 1 additions and 2 deletions

View File

@ -118,7 +118,7 @@ void LaunchControlBase::update() {
const int rpm = Sensor::getOrZero(SensorType::Rpm); const int rpm = Sensor::getOrZero(SensorType::Rpm);
const LaunchCondition launchCondition = calculateLaunchCondition(rpm); const LaunchCondition launchCondition = calculateLaunchCondition(rpm);
isLaunchCondition = combinedConditions = (launchCondition == LaunchCondition::Launch); isLaunchCondition = (launchCondition == LaunchCondition::Launch);
isPreLaunchCondition = (launchCondition == LaunchCondition::PreLaunch); isPreLaunchCondition = (launchCondition == LaunchCondition::PreLaunch);
//and still recalculate in case user changed the values //and still recalculate in case user changed the values

View File

@ -2,7 +2,6 @@ struct_no_prefix launch_control_state_s
int retardThresholdRpm int retardThresholdRpm
bit combinedConditions
bit launchActivatePinState bit launchActivatePinState
bit isPreLaunchCondition bit isPreLaunchCondition
bit isLaunchCondition bit isLaunchCondition