I'm not saying that I'm not listening to you, but I just want to make my own code correct... It's bugging me.
I figured this: what if the commsDelay increment is outside the if statement. That way, commsDelay will be only 10 if and only if a message is received. Now if there is no available() is a true value (meaning no message), in loop() commsDelay will continue to increment. That is if it does increment (like +10 per 10ms delay)
void loop(){
if(radio.available()){
//instructions
commsDelay = 10;
}
commsDelay += 10;
delay(10);
verifySuccessfulComms();
}
I am going to use your suggestion, but I wish to "debug" this one.