Hlimi Omar
/
biniou
TRR2018 omar
Fork of biniou by
Diff: stateMachines.cpp
- Revision:
- 44:69751c05a8f3
- Parent:
- 43:d2164ee3336a
- Child:
- 45:7d67809bd7bf
diff -r d2164ee3336a -r 69751c05a8f3 stateMachines.cpp --- 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