0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00
This commit is contained in:
2025-05-20 17:57:40 +02:00
parent 073c34bd29
commit 0c256a8cd4

View File

@@ -331,11 +331,11 @@ int main(int argc, char *argv[]) {
// First packet we receive, just accept whatever frame number it has
vban_frame = data.packet_data.frame_num;
} else {
// Normal packet processing
uint32_t expected_frame = vban_frame + 1;
if(data.packet_data.frame_num != expected_frame) {
if (data.packet_data.frame_num > expected_frame) {
uint32_t diff = data.packet_data.frame_num - vban_frame;
if(diff != 0) {
if(diff == 0) {
if (quiet == 0) printf("Duplicate packet received\n");
} else if (diff > 1) {
if (quiet == 0) printf("Dropped %u packets\n", data.packet_data.frame_num - expected_frame);
AudioPacket blank_packet;