![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Versão do protegemed que calcula o tempo em ms da fuga, calcula o numero de onverflow (valores muito baixo) e underflow (valores muito altos). Além disso, calcula um valor médio a partir dos valores capturados e não apenas pela fft.
Dependencies: EthernetInterface mbed-rtos mbed
Diff: Codes/TelnetCommands/telnet_reset.cpp
- Revision:
- 0:c64e1194230b
diff -r 000000000000 -r c64e1194230b Codes/TelnetCommands/telnet_reset.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Codes/TelnetCommands/telnet_reset.cpp Wed Jul 09 21:16:23 2014 +0000 @@ -0,0 +1,20 @@ +#include "TelnetServer.h" + +extern "C" void mbed_reset(); + +char *header_msg_reset = "Resetting..."; + + +int TelnetServer::ResetCommand(TCPSocketConnection *conn,char** argv,int argc) +{ + + conn->send(header_msg_reset,strlen(header_msg_reset)); + + conn->close(); + + delete conn; + + mbed_reset(); + + return 0; +} \ No newline at end of file