Created
March 29, 2014 21:20
-
-
Save Novakov/9863253 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void fc_transmit_and_wait(unsigned char buffer[TX_PLOAD_WIDTH]) | |
{ | |
fc_transmit(buffer); | |
while(1) | |
{ | |
unsigned char status = 0; | |
NRFRead(STATUS, &status, 1); | |
if((status & TX_DS) > 0) | |
{ | |
return; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment