From 5deccda850e3fec1388609757a465046639b9543 Mon Sep 17 00:00:00 2001 From: Serge Vakulenko Date: Tue, 25 Sep 2018 11:02:15 -0700 Subject: [PATCH] RD-5R: add a workaround for firmware bug, when 16 entries in RX group list cause no receive audio. --- rd5r.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rd5r.c b/rd5r.c index fef3fe4..9d0b3a7 100644 --- a/rd5r.c +++ b/rd5r.c @@ -631,7 +631,11 @@ static int grouplist_append(int index, int cnum) grouplist_t *gl = >->grouplist[index]; int i; - for (i=0; i<16; i++) { + // RD-5R firmware up to v2.1.6 has a bug: + // when all 16 entries in RX group list are occupied, + // it stops functioning and no audio is received. + // As a workaround, we must use only 15 entries here. + for (i=0; i<15; i++) { if (gl->member[i] == cnum) return 1; if (gl->member[i] == 0) {