With multiple messages queued espnowTxHandle() will enter while (!readyToSend) delay(1);which will trigger WDT reset.
This fix (for #8) resolves that by breaking out of espnowTxHandle() and waiting for next timer interrupt to process outgoing messages.
I would also recommend to reduce TASK_PERIOD from 10ms to 5ms but that might need additional testing.
With multiple messages queued
espnowTxHandle()
will enterwhile (!readyToSend) delay(1);
which will trigger WDT reset. This fix (for #8) resolves that by breaking out ofespnowTxHandle()
and waiting for next timer interrupt to process outgoing messages.I would also recommend to reduce
TASK_PERIOD
from 10ms to 5ms but that might need additional testing.