get rid of redundant combinedConditions indicator
This commit is contained in:
parent
8055596c43
commit
9909d7e035
|
@ -118,7 +118,7 @@ void LaunchControlBase::update() {
|
|||
|
||||
const int rpm = Sensor::getOrZero(SensorType::Rpm);
|
||||
const LaunchCondition launchCondition = calculateLaunchCondition(rpm);
|
||||
isLaunchCondition = combinedConditions = (launchCondition == LaunchCondition::Launch);
|
||||
isLaunchCondition = (launchCondition == LaunchCondition::Launch);
|
||||
isPreLaunchCondition = (launchCondition == LaunchCondition::PreLaunch);
|
||||
|
||||
//and still recalculate in case user changed the values
|
||||
|
|
|
@ -2,7 +2,6 @@ struct_no_prefix launch_control_state_s
|
|||
|
||||
int retardThresholdRpm
|
||||
|
||||
bit combinedConditions
|
||||
bit launchActivatePinState
|
||||
bit isPreLaunchCondition
|
||||
bit isLaunchCondition
|
||||
|
|
Loading…
Reference in New Issue