Projet robot / Bluetooth_HC05_LE_TRAME

Dependents:   robot_final

Revision:
3:8fd068b00d9c
Parent:
2:7d02a128e1e3
Child:
4:f597583e8b55
--- a/Bluetooth_HC05_LE_TRAME.cpp	Sat Mar 18 11:13:44 2017 +0000
+++ b/Bluetooth_HC05_LE_TRAME.cpp	Sat Mar 18 14:41:07 2017 +0000
@@ -38,7 +38,7 @@
          char* recu=NULL;
          
          
-       
+        
          
                 int i=0;
                  int compteur=0;
@@ -47,7 +47,7 @@
                  ///////////////////////////////////////////////OK rematrre apres
                if(seriale.readable())
                 {
-                      for(i=0;i<4;i++)
+                      for(i=0;i<longueur_trame;i++)
                     {
                      buffer[compteur]=seriale.getc();
                       compteur++;