http://tmrh20.github.io/RF24/classRF24.html#a8e2eacacfba96426c192066f04054c5b.
Looking at this website, I'm not sure what to actually change in my code.
I saw this
void RF24::read( void* buf, uint8_t len ){
// Fetch the payload
read_payload( buf, len );
//Clear the two possible interrupt flags with one command
write_register(NRF_STATUS,_BV(RX_DR) | _BV(MAX_RT) | _BV(TX_DS) );
}
But I don't know how to fix the variable done. The example code also used the variable data, but I don't know where to include it or what it means.
if(radio.available()){
radio.read(&data,sizeof(data));
}