From 4bfc7ea18ab4452ff245fff58ae714e24f06336f Mon Sep 17 00:00:00 2001 From: Arnaud Taffanel Date: Tue, 23 Mar 2021 11:59:01 +0100 Subject: [PATCH] Disable check for ESB pid --- src/esb.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/esb.c b/src/esb.c index 0cd7301f..9a80bc14 100644 --- a/src/esb.c +++ b/src/esb.c @@ -94,23 +94,6 @@ static uint32_t bytewise_bitswap(uint32_t inp) /* Radio protocol implementation */ -static bool isRetry(EsbPacket *pk) -{ - static int prevPid; - static int prevCrc; - - bool retry = false; - - if ((prevPid == pk->pid) && (prevCrc == pk->crc)) { - retry = true; - } - - prevPid = pk->pid; - prevCrc = pk->crc; - - return retry; -} - // Handles the queue static void setupTx(bool retry, bool empty) { @@ -238,12 +221,6 @@ void esbInterruptHandler() return; } - // If this packet is a retry, send the same ACK again - if ((pk->match == ESB_UNICAST_ADDRESS_MATCH) && isRetry(pk)) { - setupTx(true, false); - return; - } - if ((pk->match == ESB_UNICAST_ADDRESS_MATCH)) { // Match safeLink packet and answer it