Parse full airspy input.

This commit is contained in:
Ian Gulliver
2016-02-14 22:26:34 +00:00
parent 93558c0a23
commit 276a78aac0
4 changed files with 73 additions and 8 deletions

View File

@@ -131,7 +131,7 @@ static int loop(int bfd) {
while (airspy_adsb_parse(&buf, &packet)) {
}
if (buf.length == BUF_LEN) {
if (buf.length == BUF_LEN_MAX) {
fprintf(stderr, "Input buffer overrun. This probably means that adsbus doesn't understand the protocol that this source is speaking.\n");
return -1;
}
@@ -142,6 +142,8 @@ static int loop(int bfd) {
int main(int argc, char *argv[]) {
hex_init();
struct opts opts = {
.backend_node = "localhost",
.backend_service = "30006",