dev

Dependencies:   MTS-Serial libmDot-mbed5

Fork of Dot-AT-Firmware by MultiTech

CommandTerminal/CmdResetCpu.cpp

Committer:
alphaemmeo
Date:
2017-10-10
Revision:
18:44972ed0654d
Parent:
14:f9a77400b622

File content as of revision 18:44972ed0654d:

#include "CmdResetCpu.h"

CmdResetCpu::CmdResetCpu() : Command("Reset CPU", "ATZ", "Reset the CPU", "NONE")
{
}

uint32_t CmdResetCpu::action(std::vector<std::string> args) 
{
    CommandTerminal::Serial()->writef("\r\nOK\r\n");
    wait(0.5);
    CommandTerminal::Dot()->resetCpu();
    return 0; 
}