TRR2018 omar

Dependencies:   mbed

Fork of biniou by TRR 2018

Revision:
44:69751c05a8f3
Parent:
43:d2164ee3336a
Child:
45:7d67809bd7bf
--- a/stateMachines.cpp	Thu Sep 20 11:42:06 2018 +0000
+++ b/stateMachines.cpp	Thu Sep 20 12:04:55 2018 +0000
@@ -120,6 +120,7 @@
 #endif
 
 s_Section* p_sectionCourante = NULL;
+bool dumped = false;
 
 
 // +++++++++++++++++++++++++++++++++++++++++++ SAMPLING +++++++++++++++++++++++++++++++++++++++++++
@@ -220,8 +221,15 @@
 #if DEBUG > 0
     pc.printf("[BTN PRESSED]\r\n");
 #endif
-    //p_sectionCourante = &p_section1;
+if(!dumped)
+{
     transmitData();
+    dumped = true;
+}else{
+    initSamples();
+    p_sectionCourante = &p_section1;
+    dumped = false;
+    }
 }
 #endif