mirror of https://github.com/FOME-Tech/fome-fw.git
code formatting
This commit is contained in:
parent
e58b53dcb2
commit
594dfb639d
|
@ -47,7 +47,7 @@ int revolutionCounterSinceBootForUnitTest = 0;
|
||||||
RpmCalculator::RpmCalculator() {
|
RpmCalculator::RpmCalculator() {
|
||||||
#if !EFI_PROD_CODE
|
#if !EFI_PROD_CODE
|
||||||
mockRpm = MOCK_UNDEFINED;
|
mockRpm = MOCK_UNDEFINED;
|
||||||
#endif
|
#endif /* EFI_PROD_CODE */
|
||||||
rpmValue = 0;
|
rpmValue = 0;
|
||||||
assignRpmValue(0);
|
assignRpmValue(0);
|
||||||
|
|
||||||
|
@ -166,9 +166,10 @@ void RpmCalculator::setStopped(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
// todo: add a version which does not check time & saves time? need to profile
|
// todo: add a version which does not check time & saves time? need to profile
|
||||||
int RpmCalculator::getRpm(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
int RpmCalculator::getRpm(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
#if !EFI_PROD_CODE
|
#if !EFI_PROD_CODE
|
||||||
if (mockRpm != MOCK_UNDEFINED)
|
if (mockRpm != MOCK_UNDEFINED) {
|
||||||
return mockRpm;
|
return mockRpm;
|
||||||
#endif
|
}
|
||||||
|
#endif /* EFI_PROD_CODE */
|
||||||
if (!isRunning(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
if (!isRunning(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
||||||
setStopped(PASS_ENGINE_PARAMETER_SIGNATURE);
|
setStopped(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ class RpmCalculator {
|
||||||
public:
|
public:
|
||||||
#if !EFI_PROD_CODE
|
#if !EFI_PROD_CODE
|
||||||
int mockRpm;
|
int mockRpm;
|
||||||
#endif
|
#endif /* EFI_PROD_CODE */
|
||||||
RpmCalculator();
|
RpmCalculator();
|
||||||
/**
|
/**
|
||||||
* Returns true if the engine is not spinning (RPM==0)
|
* Returns true if the engine is not spinning (RPM==0)
|
||||||
|
|
Loading…
Reference in New Issue