}
}
- static void startRetxmitTimer(uint16_t mask, uint16_t offset) {
+ static void startRetxmitTimer(uint16_t window, uint16_t offset) {
uint16_t r = call Random.rand16();
- r &= mask;
+ r %= window;
r += offset;
call RetxmitTimer.startOneShot(r);
dbg("Forwarder", "Rexmit timer will fire in %hu ms\n", r);
// two is different.
if (qe->client < CLIENT_COUNT) { // Client packet
clientPtrs[qe->client] = qe;
- signal Send.sendDone[qe->client](msg, FAIL);
+ signal Send.sendDone[qe->client](msg, SUCCESS);
call CollectionDebug.logEventMsg(NET_C_FE_SENDDONE_FAIL_ACK_SEND,
call CollectionPacket.getSequenceNumber(msg),
call CollectionPacket.getOrigin(msg),