enjoying C++11
This commit is contained in:
parent
655f43f61a
commit
d1430b1b3d
|
@ -60,8 +60,9 @@ RpmCalculator::RpmCalculator() {
|
|||
lastRpmEventTimeNt = (efitime_t) -10 * US2NT(US_PER_SECOND_LL);
|
||||
revolutionCounterSinceBootForUnitTest = 0;
|
||||
|
||||
// WAT? how come removing this from here breaks tests if same zero default value
|
||||
// is defined in field definition?
|
||||
lastRpmEventTimeNt = 0;
|
||||
oneDegreeUs = NAN;
|
||||
}
|
||||
|
||||
bool RpmCalculator::isStopped(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
|
|
|
@ -131,7 +131,7 @@ public:
|
|||
* NaN while engine is not spinning
|
||||
*/
|
||||
volatile floatus_t oneDegreeUs = NAN;
|
||||
volatile efitime_t lastRpmEventTimeNt;
|
||||
volatile efitime_t lastRpmEventTimeNt = 0;
|
||||
private:
|
||||
/**
|
||||
* Should be called once we've realized engine is not spinning any more.
|
||||
|
|
Loading…
Reference in New Issue