aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usb.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/usb.go b/usb.go
index c15b126..4984465 100644
--- a/usb.go
+++ b/usb.go
@@ -23,7 +23,16 @@ var (
)
func CC100(desc *usb.Descriptor) bool {
- return desc.Vendor == graphtec && desc.Product == cc200_20
+ if desc.Vendor == graphtec {
+ switch desc.Product {
+ case cc200_20, cc300_20,
+ silhouette_sd_1,
+ silhouette_sd_2,
+ silhouette_portrait:
+ return true
+ }
+ }
+ return false
}
func NewDevice() (d Device) {