added CLI-Command to reset Tank
This commit is contained in:
parent
3357691a21
commit
c7af5619eb
@ -30,6 +30,7 @@ void Debug_ShowDTCs();
|
|||||||
void Debug_dumpGlobals();
|
void Debug_dumpGlobals();
|
||||||
void Debug_printHelp();
|
void Debug_printHelp();
|
||||||
void Debug_Purge();
|
void Debug_Purge();
|
||||||
|
void Debug_refillTank();
|
||||||
const char *uint32_to_binary_string(uint32_t num);
|
const char *uint32_to_binary_string(uint32_t num);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -318,7 +319,8 @@ static const std::map<String, DebugCmdHandler> &getCmdMap()
|
|||||||
int code = tokens[0].toInt();
|
int code = tokens[0].toInt();
|
||||||
MaintainDTC((DTCNum_t)code, true, millis());
|
MaintainDTC((DTCNum_t)code, true, millis());
|
||||||
}
|
}
|
||||||
}}
|
}},
|
||||||
|
{"tank_refill", [](const String &) { Debug_refillTank(); }},
|
||||||
};
|
};
|
||||||
return cmdMap;
|
return cmdMap;
|
||||||
}
|
}
|
||||||
@ -542,6 +544,13 @@ void Debug_Purge()
|
|||||||
Debug_pushMessage("Purging 10 pulses\n");
|
Debug_pushMessage("Purging 10 pulses\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Debug_refillTank()
|
||||||
|
{
|
||||||
|
PersistenceData.tankRemain_microL = LubeConfig.tankCapacity_ml * 1000;
|
||||||
|
globals.requestEEAction = EE_PDS_SAVE;
|
||||||
|
Debug_pushMessage("Setting Tank to 100%\n");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Convert a uint32_t value to a binary string with nibbles separated by a space.
|
* @brief Convert a uint32_t value to a binary string with nibbles separated by a space.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user