Set the unique id only for usb devices with serial strings longer than 4 chars long
diff --git a/cgminer.c b/cgminer.c
index fff7482..c315dbe 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -8929,7 +8929,8 @@ bool add_cgpu(struct cgpu_info *cgpu)
adjust_mostdevs();
#ifdef USE_USBUTILS
- if (cgpu->usbdev && !cgpu->unique_id && cgpu->usbdev->serial_string)
+ if (cgpu->usbdev && !cgpu->unique_id && cgpu->usbdev->serial_string &&
+ strlen(cgpu->usbdev->serial_string) > 4)
cgpu->unique_id = str_text(cgpu->usbdev->serial_string);
#endif
return true;