From 4a95c08d56063db10a0456dcdafb1f683cc6be52 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 10 Feb 2022 07:37:33 +0100 Subject: [PATCH] Improve error message for unsupported usb hotplug --- app/src/usb/usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/usb/usb.c b/app/src/usb/usb.c index c7963726..07fb9619 100644 --- a/app/src/usb/usb.c +++ b/app/src/usb/usb.c @@ -254,7 +254,8 @@ run_libusb_event_handler(void *data) { static bool sc_usb_register_callback(struct sc_usb *usb) { if (!libusb_has_capability(LIBUSB_CAP_HAS_HOTPLUG)) { - LOGW("libusb does not have hotplug capability"); + LOGW("On this platform, libusb does not have hotplug capability; " + "device disconnection will not be detected properly"); return false; }