Andriy Makukha / Mbed 2 deprecated football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Revision:
68:0c96bb3d73a7
Parent:
67:5650f461722a
Child:
69:a3295b74209e
--- a/Radio.cpp	Thu Feb 11 17:47:28 2016 +0000
+++ b/Radio.cpp	Thu Feb 11 19:28:01 2016 +0000
@@ -185,6 +185,7 @@
     payload[5] = (byte)++TA::msg_id;  //// Msg ID,  was: = (byte)'%';
 
     radio.send( m->cone, payload, sizeof(payload), requestACK );  ////
+    radio_receive_complete();  //// Prevent radio from going to sleep.
 }
 
 void stompage_check()
@@ -313,6 +314,7 @@
 void radio_send_ack()  ////
 {
     radio.sendACK( "K", 1 );
+    radio_receive_complete();  //// Prevent radio from going to sleep.
 }
 
 bool radio_ack_received( int cone )