firm newest

Dependencies:   MTS-Serial libmDot-dev-mbed5-deprecated

CommandTerminal/CmdResetCpu.cpp

Committer:
nguyenhoang9x5555
Date:
2018-10-22
Revision:
1:c1c6549b9333
Parent:
0:3c869a8cb8f8

File content as of revision 1:c1c6549b9333:

#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; 
}