liaison bluetooth entre gros robot -> panneau ou gros robot -> petit robot
Fork of liaison_Bluetooth by
Diff: LiaisonBluetooth.cpp
- Revision:
- 10:f5ad5e892d20
- Parent:
- 8:4b5a472a8f94
- Child:
- 12:77e75c977993
diff -r 4b5a472a8f94 -r f5ad5e892d20 LiaisonBluetooth.cpp --- a/LiaisonBluetooth.cpp Fri Apr 13 13:04:27 2018 +0000 +++ b/LiaisonBluetooth.cpp Fri Apr 20 07:40:25 2018 +0000 @@ -1,4 +1,4 @@ -#include "LiaisonBluetooth/LiaisonBluetooth.h" +#include "global.h" /* if (action_robot_2) { @@ -75,7 +75,7 @@ m_bluetooth->putc(idenfitiant); //char *longueur_buffer = convertir_int_en_4char(longueur_data); - char str[4]; + char str[4]={0,0,0,0}; sprintf(str,"%d", longueur_data); for (int i = 0 ; i < 4 ; i++) { m_bluetooth->putc(str[i]);