From 2c3df7381f1364c2706e783ad25ee61a408e1664 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Thu, 11 Jan 2018 21:53:09 +0100 Subject: [PATCH] unix/usb: fix wur --- embed/unix/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embed/unix/usb.c b/embed/unix/usb.c index d90c49454..06afe6a49 100644 --- a/embed/unix/usb.c +++ b/embed/unix/usb.c @@ -106,7 +106,7 @@ int usb_hid_read(uint8_t iface_num, uint8_t *buf, uint32_t len) { static const char *ping_req = "PINGPING"; static const char *ping_resp = "PONGPONG"; if (r == strlen(ping_req) && memcmp(ping_req, buf, strlen(ping_req)) == 0) { - usb_hid_write(0, (const uint8_t *)ping_resp, strlen(ping_resp)); + ensure(usb_hid_write(0, (const uint8_t *)ping_resp, strlen(ping_resp)), "usb_hid_write"); return 0; } return r;