remove unused
This commit is contained in:
parent
f49f87e66a
commit
a746bae8ce
|
@ -380,8 +380,7 @@ StartupFuelPumping::StartupFuelPumping() {
|
||||||
pumpsCounter = 0;
|
pumpsCounter = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartupFuelPumping::setPumpsCounter(
|
void StartupFuelPumping::setPumpsCounter(int newValue) {
|
||||||
engine_configuration_s *engineConfiguration, int newValue) {
|
|
||||||
if (pumpsCounter != newValue) {
|
if (pumpsCounter != newValue) {
|
||||||
pumpsCounter = newValue;
|
pumpsCounter = newValue;
|
||||||
|
|
||||||
|
@ -399,14 +398,14 @@ void StartupFuelPumping::update(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
bool isTpsAbove50 = getTPS(PASS_ENGINE_PARAMETER_F) >= 50;
|
bool isTpsAbove50 = getTPS(PASS_ENGINE_PARAMETER_F) >= 50;
|
||||||
|
|
||||||
if (this->isTpsAbove50 != isTpsAbove50) {
|
if (this->isTpsAbove50 != isTpsAbove50) {
|
||||||
setPumpsCounter(engineConfiguration, pumpsCounter + 1);
|
setPumpsCounter(pumpsCounter + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/**
|
/**
|
||||||
* Engine is not stopped - not priming pumping mode
|
* Engine is not stopped - not priming pumping mode
|
||||||
*/
|
*/
|
||||||
setPumpsCounter(engineConfiguration, 0);
|
setPumpsCounter(0);
|
||||||
isTpsAbove50 = false;
|
isTpsAbove50 = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -440,7 +440,7 @@ public:
|
||||||
bool isTpsAbove50;
|
bool isTpsAbove50;
|
||||||
int pumpsCounter;
|
int pumpsCounter;
|
||||||
private:
|
private:
|
||||||
void setPumpsCounter(engine_configuration_s *engineConfiguration, int newValue);
|
void setPumpsCounter(int newValue);
|
||||||
};
|
};
|
||||||
|
|
||||||
void prepareShapes(DECLARE_ENGINE_PARAMETER_F);
|
void prepareShapes(DECLARE_ENGINE_PARAMETER_F);
|
||||||
|
|
|
@ -47,7 +47,7 @@ void resetConsoleActions(void) {
|
||||||
static void doAddAction(const char *token, action_type_e type, Void callback, void *param) {
|
static void doAddAction(const char *token, action_type_e type, Void callback, void *param) {
|
||||||
efiAssertVoid(consoleActionCount < CONSOLE_MAX_ACTIONS, "Too many console actions");
|
efiAssertVoid(consoleActionCount < CONSOLE_MAX_ACTIONS, "Too many console actions");
|
||||||
TokenCallback *current = &consoleActions[consoleActionCount++];
|
TokenCallback *current = &consoleActions[consoleActionCount++];
|
||||||
for (int i = 0; i< efiStrlen(token);i++) {
|
for (uint32_t i = 0; i< efiStrlen(token);i++) {
|
||||||
char ch = token[i];
|
char ch = token[i];
|
||||||
if (ch != mytolower(ch)) {
|
if (ch != mytolower(ch)) {
|
||||||
firmwareError(CUSTOM_ERR_COMMAND_LOWER_CASE_EXPECTED, "lowerCase expected [%s]", token);
|
firmwareError(CUSTOM_ERR_COMMAND_LOWER_CASE_EXPECTED, "lowerCase expected [%s]", token);
|
||||||
|
|
Loading…
Reference in New Issue