diff --git a/firmware/l0dable/r_player.c b/firmware/l0dable/r_player.c index d05b59f..6d66935 100644 --- a/firmware/l0dable/r_player.c +++ b/firmware/l0dable/r_player.c @@ -288,8 +288,17 @@ void processPacket(struct packet *p) void processAnnounce(struct announce *a) { if( gamecount < sizeof(games)/sizeof(games[0]) ){ - games[gamecount] = *a; - gamecount++; + int repeat=0; + int i; + for (i=0; igameId == games[i].gameId){ + repeat=1; + } + } + if (repeat!=1){ + games[gamecount] = *a; + gamecount++; + } } }