Skip to content

Commit

Permalink
Fix: Copy request buffer indices correctly in request queue. This bug…
Browse files Browse the repository at this point in the history
… could lead to sending messages endlessly when they were not acknowledged.
  • Loading branch information
breaker27 committed Jun 10, 2014
1 parent 0beac57 commit 19b1771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/shc_basestation/request_buffer.c
Expand Up @@ -226,7 +226,7 @@ request_t * find_request_to_repeat(uint32_t packet_counter)

uint8_t x;

for (x = 1; x < REQUEST_QUEUE_PACKETS - 1; x++)
for (x = 1; x < REQUEST_QUEUE_PACKETS; x++)
{
request_queue[i][x] = request_queue[i][x + 1];
}
Expand Down

0 comments on commit 19b1771

Please sign in to comment.