diff options
author | Leon Lindenfelser <llindenfelser@multitech.com> | 2015-11-18 11:16:11 -0600 |
---|---|---|
committer | Leon Lindenfelser <llindenfelser@multitech.com> | 2015-11-18 11:16:11 -0600 |
commit | ce5c78c53be8d66da4a2cccdf18b622c0b77e773 (patch) | |
tree | ec4b374b788034fdd182be841699a51abc84ec6e /CommandTerminal/CmdFactoryDefault.cpp | |
parent | f484beed77531d7ef2da65cf049fe9c4ac6b7d08 (diff) | |
download | mtdot-box-evb-factory-firmware-ce5c78c53be8d66da4a2cccdf18b622c0b77e773.tar.gz mtdot-box-evb-factory-firmware-ce5c78c53be8d66da4a2cccdf18b622c0b77e773.tar.bz2 mtdot-box-evb-factory-firmware-ce5c78c53be8d66da4a2cccdf18b622c0b77e773.zip |
Added functionality to get the guts of these commands working with storage
mapped into unused mDot commands. Over write the mDot defaults in these
storage locations with the appropriate defaults for these 5 commands.
Diffstat (limited to 'CommandTerminal/CmdFactoryDefault.cpp')
-rw-r--r-- | CommandTerminal/CmdFactoryDefault.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CommandTerminal/CmdFactoryDefault.cpp b/CommandTerminal/CmdFactoryDefault.cpp index 53b6ede..3e366e8 100644 --- a/CommandTerminal/CmdFactoryDefault.cpp +++ b/CommandTerminal/CmdFactoryDefault.cpp @@ -9,6 +9,14 @@ CmdFactoryDefault::CmdFactoryDefault(mDot* dot) : Command(dot, "Reset Factory De uint32_t CmdFactoryDefault::action(std::vector<std::string> args) { _dot->resetConfig(); + +//Factory defaults for the DotBox. + _dot->setWakeDelay(242); //DotBox +MaxSize is stored here. Default is 242. + _dot->setWakeInterval(11); //DotBox +MinSize is stored here. Default is 11. + _dot->setWakeMode(20); //DotBox +MaxPwr is stored here. Default is 20. + _dot->setWakeTimeout(2); //DotBox +MinPwr is stored here. Default is 2. + _dot->setStartUpMode(0); //DotBox +Data is stored here. Default is 0. + _dot->resetNetworkSession(); return 0; } |