liaison bluetooth entre gros robot -> panneau ou gros robot -> petit robot

Fork of liaison_Bluetooth by j d

Revision:
6:91cf94ff46ed
Parent:
5:be0c602be047
Child:
7:543d5548dbb9
--- a/LiaisonBluetooth.cpp	Fri Apr 13 07:39:01 2018 +0000
+++ b/LiaisonBluetooth.cpp	Fri Apr 13 12:42:43 2018 +0000
@@ -77,10 +77,12 @@
         m_bluetooth->putc(idenfitiant);
     }
 
-    char *longueur_buffer = convertir_int_en_4char(longueur_data);
+    //char *longueur_buffer = convertir_int_en_4char(longueur_data);
+    char str[4]; 
+    sprintf(str,"%d", longueur_data);
     for (int i = 0 ; i < 4 ; i++) {
         if (m_state && m_bluetooth->writeable()) {
-            m_bluetooth->putc(longueur_buffer[i]);
+            m_bluetooth->putc(str[i]);
         }
     }