mbed-os github

Dependencies:   ADS1015 Faulhaber HTU21D_mod MS5837_potless Sensor_Head_RevB_3 USBDevice_dfu Utilsdfu beep

Fork of ARNSRS_testDFU by POTLESS

Revision:
27:1b1fd20a2793
Parent:
26:a2fe19341f92
Child:
29:5b822d18bce6
--- a/main.cpp	Tue Feb 13 08:34:12 2018 +0000
+++ b/main.cpp	Tue Feb 13 14:48:27 2018 +0000
@@ -403,7 +403,7 @@
     if ((char)commande == 'S') {
         Mode_SECU();
     }else if ((char)commande == 'D') {
-        UTILS::DIR_SD();
+        UTILS::Dir_SD();
     }else if ((char)commande == 'U') {
         char filename[20];
         sprintf(filename, "LOG_%d.txt", (int)valeur);
@@ -529,7 +529,7 @@
     android.attach(&callbackAndroid, Serial::RxIrq);
 
     //Ci-dessous commande pour formater une nouvelle carte
-    //UTILS::Format_SD();
+    UTILS::Format_SD();
 
     //Montage carte SD 
     UTILS::Mount_SD();
@@ -540,10 +540,6 @@
     bool calib_O2 = false;
     bool calib_CO2 = false;
     
-    if(UTILS::File_Exist("Calibration_O2") == false) {
-    calib_O2 = true;
-    }
-    
     /*
     Par défaut les valeur en cas de calibration sur true sont les suivant
 
@@ -563,13 +559,14 @@
        sensors.Sensors_INIT(true, true, true, 5, SPOOLING, DIGI_FILTER32, CALIB_AIR);
 
     */
-    Servo_Poumon.Init("Servo_Poumon");
-    //Servo_Fuite.Init();
     
     sensors.Sensors_INIT(calib_O2, calib_CO2);
 
     wait(1);
     
+    Servo_Poumon.Init("Servo_Poumon");
+    //Servo_Fuite.Init();
+     
     //Création du nouveau fichier LOG par index / par date.
     Create_File_Name_Index();
     //Create_File_Name_Date()
@@ -728,6 +725,6 @@
 
         wait_ms(RATE_TRUE);
     }    
-  }
+   }
   }
 }