Browse Source

Header debug

master
Jeroen Vreeken 4 years ago
parent
commit
02b80c38e5
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      dml_trx.c

+ 4
- 1
dml_trx.c View File

@ -442,12 +442,15 @@ static void stream_header_cb(struct dml_host *host, struct dml_stream *ds, void
fprintf(stderr, "Received spurious data from %s\n", dml_stream_name_get(ds));
return;
}
fprintf(stderr, "Received header (%zd bytes)\n", header_size);
if (!header_size)
return;
if (ds == cur_con) {
fprintf(stderr, "Received %zd ok\n", header_size);
fprintf(stderr, "Play header\n");
trx_dv_send(mac_dev, mac_bcast, 'A', header, header_size);
} else {
fprintf(stderr, "Stream mismatch: %p %p\n", ds, cur_con);
}
}


Loading…
Cancel
Save