while (!done) {
done = radio.read(msg, 4);
digitalWrite(7, HIGH);
wait = false;
}
This code will not compile on the better/newer NRF24 library http://tmrh20.github.io/RF24/index.html,
read() is a void function in this library.
That while loop is not very sensible anyway, silently discarding packets is normally counterproductive.