summaryrefslogtreecommitdiff
path: root/CommandTerminal/CmdFactoryDefault.cpp
blob: 53b6ededa0d78f8dbe8ac5b11c37e521473f1680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "CmdFactoryDefault.h"

CmdFactoryDefault::CmdFactoryDefault(mDot* dot) : Command(dot, "Reset Factory Defaults", "AT&F", "Reset current configuration to factory defaults")
{
    _help = std::string(text()) + ": " + std::string(desc());
}


uint32_t CmdFactoryDefault::action(std::vector<std::string> args)
{
    _dot->resetConfig();
    _dot->resetNetworkSession();
    return 0;
}