From 6cb15a6482279e19299de77111d9afa00d77fed2 Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Wed, 20 Nov 2019 11:14:41 -0500 Subject: [PATCH] small fixes --- fido2/Makefile | 2 +- fido2/device.c | 2 ++ pc/device.c | 7 +------ 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/fido2/Makefile b/fido2/Makefile index 93958cc..203af97 100644 --- a/fido2/Makefile +++ b/fido2/Makefile @@ -40,5 +40,5 @@ libsolo.a: $(OBJ) $(CC) $^ $(INT_CFLAGS) $(ECC_CFLAGS) -c -o $@ clean: - rm $(OBJ) libsolo.a + rm -f $(OBJ) libsolo.a diff --git a/fido2/device.c b/fido2/device.c index e53c933..fc8a878 100644 --- a/fido2/device.c +++ b/fido2/device.c @@ -12,6 +12,8 @@ * aren't what you want to keep, but are designed to be replaced * with some other platform specific implementation. * + * For real examples, see the STM32L4 implementation and the PC implementation of device.c. + * */ #include #include diff --git a/pc/device.c b/pc/device.c index 181cdfb..c3c5905 100644 --- a/pc/device.c +++ b/pc/device.c @@ -175,8 +175,7 @@ int usbhid_recv(uint8_t * msg) return l; } -// Send 64 byte USB HID message -static void _usbhid_send(uint8_t * msg) +void usbhid_send(uint8_t * msg) { if (use_udp) { @@ -191,10 +190,6 @@ static void _usbhid_send(uint8_t * msg) } } } -void usbhid_send(uint8_t * msg) -{ - _usbhid_send(msg); -}