Projet_S5 / Mbed 2 deprecated Repo_Noeud_Mobile_refactor

Dependencies:   mbed-rtos mbed

Fork of Repo_Noeud_Mobile by Projet_S5

Revision:
36:e587950c288c
Parent:
32:7bdaac2c4cbf
Child:
39:558cd5780490
--- a/Communication/Xbee.cpp	Mon Apr 06 18:53:34 2015 +0000
+++ b/Communication/Xbee.cpp	Mon Apr 06 19:15:45 2015 +0000
@@ -130,15 +130,15 @@
 
                     //Validate end byte
                     if (XbeePin->getc() == 0x7E) {
-                        message_vers_mobile *emile = Mailbox.alloc();
+                        message_vers_mobile *emile = MailboxReception.alloc();
 
                         // Verifier si mail pointe pas vers 0 [boite pleine]
                         while (emile == 0) {
                             wait_ms(25);
-                            emile = Mailbox.alloc();
+                            emile = MailboxReception.alloc();
                         }
                         emile->donnees = receivedData;
-                        Mailbox.put(emile);
+                        MailboxReception.put(emile);
                     }
                 }
             }