I'm not familiar with the RCSwitch library, so forgive me if it's within the library, but I don't see anything in your code that implements any type of delay, be it directly or indirectly.
I'm not familiar with the RCSwitch library, so forgive me if it's within the library, but I don't see anything in your code that implements any type of delay, be it directly or indirectly.