esp_modem: Add ConsoleCommand destructor

Commands are registered in Constructor. But there is now of deregistering it
This is needed for correct console re-construction,
for example with USB modem replugging.
This commit is contained in:
Tomas Rezucha
2022-09-09 11:08:44 +02:00
parent fe536e476c
commit a89a0ab7a3
2 changed files with 15 additions and 0 deletions

View File

@ -92,6 +92,11 @@ public:
*/
explicit ConsoleCommand(const char *command, const char *help, const std::vector<CommandArgs> &args, std::function<bool(ConsoleCommand *)> f);
/**
* @brief Destructor of ConsoleCommand
*/
~ConsoleCommand();
/**
* @brief Utility getters of various params from the argument list
*/