Skip to content

Instantly share code, notes, and snippets.

@Novakov
Created March 29, 2014 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Novakov/9863253 to your computer and use it in GitHub Desktop.
Save Novakov/9863253 to your computer and use it in GitHub Desktop.
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