football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Revision:
45:1eb335c00cb2
Parent:
37:8f15b14d6994
Child:
46:28c29ef61276
--- a/main.cpp	Sat Jan 09 12:59:34 2016 +0000
+++ b/main.cpp	Sat Jan 09 22:36:55 2016 +0000
@@ -205,8 +205,7 @@
 
 // Buffer for holding data from the phone
 // to the device
-#define PHTODEV_BUF_LEN    30  /**/
-static char phoneToDev[PHTODEV_BUF_LEN] = {0};
+static char phoneToDev[MAX_LEN] = {0};
 
 extern TA ta;
 
@@ -712,9 +711,8 @@
         app_sched_execute();  // Attempt to get pstorage enqueued cmd callbacks.
       */
 
-/**/    int bytes = MIN( PHTODEV_BUF_LEN, phoneP->readable() );
-/**/
 #ifdef MASTER    
+/**/int bytes = MIN( MAX_LEN, phoneP->readable() );
     getRadioInput( phoneToDev, phoneP->read( phoneToDev, bytes, 1 ) );
 #endif
         loop();