teste de publish
Dependencies: DS1820 HighSpeedAnalogIn devices mbed
Diff: diversos.cpp
- Revision:
- 21:b9315cdd9275
- Parent:
- 20:da1b8d80ba00
- Child:
- 22:cb832a9bc704
diff -r da1b8d80ba00 -r b9315cdd9275 diversos.cpp --- a/diversos.cpp Mon Jan 29 14:22:38 2018 +0000 +++ b/diversos.cpp Tue Feb 06 16:33:51 2018 +0000 @@ -186,6 +186,11 @@ modemCom::sendBufferCommandMode(idConnection,msg,strlen(msg)); pc.printf("File Received checkSum16BIT_Lido <%lu>.\r\n",checkSum16BIT_Lido); + if(strstr(sdCard::nomeArquivoEmRecebimento,"config.bin")!=NULL){ + pc.printf("Resetando o drome.\r\n"); + hardwareReset=true; + } + if(strstr(sdCard::nomeArquivoEmRecebimento,"devices.cfg")!=NULL){ sdCard::deleteBanks(2); pc.printf("Resetando o drome.\r\n");