unused
This commit is contained in:
parent
ff34bc878d
commit
b0e7617f40
|
@ -800,21 +800,6 @@ static void setTimingMap(const char * rpmStr, const char *loadStr, const char *v
|
|||
scheduleMsg(&logger, "Setting timing map entry %d:%d to %.2f", rpmIndex, loadIndex, value);
|
||||
}
|
||||
|
||||
static void setFuelMap(const char * rpmStr, const char *loadStr, const char *valueStr) {
|
||||
float rpm = atoff(rpmStr);
|
||||
float engineLoad = atoff(loadStr);
|
||||
float value = atoff(valueStr);
|
||||
|
||||
int rpmIndex = findIndexMsg("setFM", config->fuelRpmBins, FUEL_RPM_COUNT, rpm);
|
||||
rpmIndex = rpmIndex < 0 ? 0 : rpmIndex;
|
||||
int loadIndex = findIndexMsg("setTM", config->fuelLoadBins, FUEL_LOAD_COUNT, engineLoad);
|
||||
loadIndex = loadIndex < 0 ? 0 : loadIndex;
|
||||
|
||||
config->fuelTable[loadIndex][rpmIndex] = value;
|
||||
scheduleMsg(&logger, "Setting fuel map entry %d:%d to %.2f", rpmIndex, loadIndex, value);
|
||||
engine->resetEngineSnifferIfInTestMode();
|
||||
}
|
||||
|
||||
static void setSpiMode(int index, bool mode) {
|
||||
switch (index) {
|
||||
case 1:
|
||||
|
@ -1347,7 +1332,6 @@ void initSettings(void) {
|
|||
addConsoleActionF("set_whole_fuel_map", setWholeFuelMapCmd);
|
||||
addConsoleActionF("set_whole_ve_map", setWholeVeCmd);
|
||||
addConsoleActionF("set_whole_ign_corr_map", setWholeIgnitionIatCorr);
|
||||
addConsoleActionSSS("set_fuel_map", setFuelMap);
|
||||
|
||||
addConsoleActionSSS("set_timing_map", setTimingMap);
|
||||
|
||||
|
|
Loading…
Reference in New Issue