Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Repo_Noeud_Mobile by
Diff: main.cpp
- Revision:
- 37:28f1122a858c
- Parent:
- 35:02c1049699aa
- Child:
- 38:0196baea1d35
--- a/main.cpp Mon Apr 06 19:28:16 2015 +0000 +++ b/main.cpp Mon Apr 06 19:49:00 2015 +0000 @@ -18,7 +18,7 @@ #include "Xbee.h" #define GO 0x01 -#define ACTIVATE_ACCEL 1 +#define ACTIVATE_ACCEL 0 Serial m_pc(USBTX, USBRX); LocalFileSystem local("local"); // file system for config.txt @@ -187,12 +187,12 @@ { while (true) { // attente et lecture d'un événement digital - osEvent evtD = mailbox_flex.get(); + osEvent evtD = mailbox_Mobile_Vers_Fixe.get(); if (evtD.status == osEventMail) { - flex_t *mail = (flex_t*)evtD.value.p; + Mobile_Vers_Fixe *mail = (Mobile_Vers_Fixe*)evtD.value.p; // écriture de l'événement en sortie (port série) - m_pc.printf("Valeur des flex : %d, %d, %d\r\n" , mail->index, mail->majeur, mail->annulaire); - mailbox_flex.free(mail); + m_pc.printf("Valeur des flex : %d, %d, %d\r\n" , mail->flexSensor.index, mail->flexSensor.majeur, mail->flexSensor.annulaire); + mailbox_Mobile_Vers_Fixe.free(mail); } } }