Skip to content

Commit

Permalink
Update syncedproto.c
Browse files Browse the repository at this point in the history
  • Loading branch information
atc1441 committed Jun 19, 2024
1 parent 564cd65 commit f11f8e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ARM_Tag_FW/OpenEPaperLink_TLSR/src/syncedproto.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ static bool blockRxLoop(const uint32_t timeout)
bool success = false;
// radioRxEnable(true);
uint32_t t = clock_time();
while (!clock_time_exceed(t, 2000 * 1000))
while (!clock_time_exceed(t, timeout * 1000)) // 300 ms is enough here
{
int8_t ret = commsRxUnencrypted(inBuffer);
if (ret > 1)
Expand Down Expand Up @@ -611,7 +611,7 @@ static bool getDataBlock(const uint16_t blockSize)
{
// immediately start with the reception of the block data
}
blockRxLoop(270); // BLOCK RX LOOP - receive a block, until the timeout has passed
blockRxLoop(300); // BLOCK RX LOOP - receive a block, until the timeout has passed

#ifdef DEBUGBLOCKS
printf("RX %d[", curBlock.blockId);
Expand Down Expand Up @@ -940,4 +940,4 @@ void initializeProto()
{
getNumSlots();
curHighSlotId = getHighSlotId();
}
}

0 comments on commit f11f8e3

Please sign in to comment.