teste de publish
Dependencies: DS1820 HighSpeedAnalogIn devices mbed
Diff: serialPC.cpp
- Revision:
- 10:263c093f8977
- Parent:
- 9:cf406384efd9
- Child:
- 15:0f78bf9c13ec
diff -r cf406384efd9 -r 263c093f8977 serialPC.cpp --- a/serialPC.cpp Wed Aug 09 20:38:10 2017 +0000 +++ b/serialPC.cpp Mon Aug 14 13:59:27 2017 +0000 @@ -69,10 +69,7 @@ } - if(strstr(bufIn,"exibeArquivo:armazenamento.txt")!=NULL){ - sdCard::exibeArquivo(&sdCard::armazenamento); - return; - } + if(strstr(bufIn,"exibeArquivo:config.bin")!=NULL){ sdCard::exibeArquivo(&sdCard::config); @@ -98,8 +95,18 @@ return; } - if(strstr(bufIn,"exibeArquivo:envio.txt")!=NULL){ - sdCard::exibeArquivo(&sdCard::envio); + if(strstr(bufIn,"exibeArquivo:bank0.txt")!=NULL){ + sdCard::exibeArquivo(&sdCard::bank0); + return; + } + + if(strstr(bufIn,"exibeArquivo:bank1.txt")!=NULL){ + sdCard::exibeArquivo(&sdCard::bank1); + return; + } + + if(strstr(bufIn,"exibeArquivo:currentBank.txt")!=NULL){ + sdCard::exibeArquivo(&sdCard::currentBankFile); return; } @@ -115,20 +122,19 @@ return; } - if(strstr(bufIn,"excluiArquivo:armazenamento.txt")!=NULL){ - sdCard::excluiArquivo(&sdCard::armazenamento); - return; - } + if(strstr(bufIn,"excluiArquivo:config.bin")!=NULL){ sdCard::excluiArquivo(&sdCard::config); return; } - if(strstr(bufIn,"excluiArquivo:envio.txt")!=NULL){ - sdCard::excluiArquivo(&sdCard::envio); + if(strstr(bufIn,"excluiArquivo:currentBank.txt")!=NULL){ + sdCard::excluiArquivo(&sdCard::currentBankFile); return; - } + } + + if(strstr(bufIn,"excluiArquivo:devices.cfg")!=NULL){ sdCard::excluiArquivo(&sdCard::devices);