Fixed bug in hiddata.*
[usb-relay-hid.git] / commandline / hiddata_libusb01.c
index b21aa80042eefcf313875ed1e2edc486ebdb2672..537374c933fae8c1369b28a6707840fd479c62fd 100644 (file)
@@ -203,12 +203,16 @@ int usbhidStrerror_r( int err, char *buf, int len)
     const char *s;
     switch (err) {
         case USBHID_ERR_ACCESS:      s = "Access to device denied";
+            break;
         case USBHID_ERR_NOTFOUND:    s = "The specified device was not found";
+            break;
         case USBHID_ERR_IO:          s = "Communication error with device";
+            break;
         case USBHID_ERR_IO_HID:      s = "HID I/O error with device";
+            break;
         default:
             s = "";
     }
-  
+
     return snprintf(buf, len, "%s", s);
 }