From 3b8152fd3057f17666eada9a2de9e029ddd88e7a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 26 Feb 2020 18:34:02 +0100 Subject: [PATCH] BSB: Daemon tries to send frames --- bsb/daemon/Makefile | 2 +- bsb/daemon/burrow-bsb.c | 26 +++++++++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/bsb/daemon/Makefile b/bsb/daemon/Makefile index 10ed633..8afe8d2 100644 --- a/bsb/daemon/Makefile +++ b/bsb/daemon/Makefile @@ -1,4 +1,4 @@ -PC := pkg-config +PC := PKG_CONFIG_PATH=/home/mj/tmp/bsb/root/lib/pkgconfig pkg-config USB_CFLAGS := $(shell $(PC) --cflags libusb-1.0) USB_LDFLAGS := $(shell $(PC) --libs libusb-1.0) diff --git a/bsb/daemon/burrow-bsb.c b/bsb/daemon/burrow-bsb.c index 714f811..9e02008 100644 --- a/bsb/daemon/burrow-bsb.c +++ b/bsb/daemon/burrow-bsb.c @@ -92,6 +92,11 @@ static const char * const stat_names[] = { "rx_timeouts", "rx_bad_crc", "rx_ok", + "tx_overruns", + "tx_rejects", + "tx_timeouts", + "tx_collisions", + "tx_ok", }; static void show_stats(byte *resp, uint len) @@ -106,6 +111,11 @@ static void show_stats(byte *resp, uint len) static void show_packet(byte *pkt, uint len) { + if (len == 1) { + printf("Received status %u\n", pkt[0]); + return; + } + #if 1 printf(":"); for (uint i=0; i