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 football_project by
Diff: Radio.cpp
- Revision:
- 68:0c96bb3d73a7
- Parent:
- 67:5650f461722a
- Child:
- 69:a3295b74209e
diff -r 5650f461722a -r 0c96bb3d73a7 Radio.cpp
--- 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 )
