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:
24:44ef919899c1
Parent:
23:7477dc855fad
Child:
25:322ef9488e65
diff -r 7477dc855fad -r 44ef919899c1 main.cpp
--- a/main.cpp	Thu Feb 08 12:56:44 2018 +0000
+++ b/main.cpp	Thu Feb 08 15:31:07 2018 +0000
@@ -181,12 +181,7 @@
 void pressed() {
  
   GO = GO + 1;
-  
-  if (GO > 1) {
-  GO = 1;
-  UTILS::Mount_SD();
-  Servo_Poumon.Wake_Up(); 
-  } 
+  if (GO > 1) NVIC_SystemReset(); 
 }
 
 //Passage en mode SECU
@@ -221,11 +216,10 @@
 void Stop_Sequence()
 {
     Mode_SECU();
-    wait(1);
-    //thread_Secu.terminate();
     //thread_Sensors.terminate();
+    //wait_ms(300);
     printf("----------------ARRET DE L'APPAREIL--------------------\r\n");
-    //wait(2);
+    //wait_ms(300);
     deepsleep();
 }
 
@@ -472,7 +466,7 @@
    
    count = 1;
    
-    if (GO > 0) {
+    if (GO == 1) {
     
     wait(1);