teste de publish

Dependencies:   DS1820 HighSpeedAnalogIn devices mbed

Revision:
33:a60abda630f7
Parent:
30:8a06a85d8807
Child:
37:0e95c85f0160
--- a/funcoesSDCard.cpp	Sat May 26 14:17:55 2018 +0000
+++ b/funcoesSDCard.cpp	Wed May 30 04:24:55 2018 +0000
@@ -344,7 +344,7 @@
 
 bool sdCard::getFileTam(arquivoSD *arquivo){
     uint32_t tam=0;        
-    uint8_t timeOut = timeOutArquivoAberto;
+    
     if(!sdCard::arquivoAberto(5000)){return false;}
     
     if(arquivo->aberto){
@@ -382,13 +382,13 @@
 }
 
 
-/*//***********************************************************
+//----------------------------------------------
 // file_rename: renames a file (via copy & delete).
 //    Moves data instead of adjusting the file name in the
 //    file directory. Checks to insure the file was renamed.
 //    Returns 0 = error; 1 = success
-//***********************************************************
-uint8_t sdCard::file_rename(const char *oldfname, const char *newfname) {    
+//----------------------------------------------
+/*uint8_t sdCard::file_rename(const char *oldfname, const char *newfname) {    
     //rename(oldfname,newfname);
     int retval = 0;
     int ch;
@@ -470,7 +470,7 @@
     uint32_t fileSize = 0;
     uint32_t fileNumParts = 0;
     uint32_t fileEnding=0;
-    char ch;
+    
     uint32_t i,j;    
     if(!sdCard::arquivoAberto(30000)){return false;}    
     FILE *fpold = fopen(oldfname, "r");   // src file
@@ -486,8 +486,8 @@
     
     if(fpnew == NULL){          
         fclose(fpnew);        
-        return 0;
         sdCard::arquivosAbertos = false;
+        return 0;        
     }