From: Martin Mares Date: Wed, 26 Feb 2020 17:34:02 +0000 (+0100) Subject: BSB: Daemon tries to send frames X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3b8152fd3057f17666eada9a2de9e029ddd88e7a;p=home-hw.git BSB: Daemon tries to send frames --- 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