From 1f8de21c805fef43bbbf073c696e8630344daa30 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 19 Apr 2015 11:19:00 +0200 Subject: Add more ID's --- usb.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'usb.go') diff --git a/usb.go b/usb.go index 4770f92..c15b126 100644 --- a/usb.go +++ b/usb.go @@ -13,13 +13,17 @@ type Device struct { } var ( - vendor = usb.ID(0x0b4d) - product = usb.ID(0x110a) - debug = 3 + graphtec = usb.ID(0x0b4d) + cc200_20 = usb.ID(0x110a) + cc300_20 = usb.ID(0x111a) + silhouette_sd_1 = usb.ID(0x111c) + silhouette_sd_2 = usb.ID(0x111d) + silhouette_portrait = usb.ID(0x1123) + debug = 3 ) func CC100(desc *usb.Descriptor) bool { - return desc.Vendor == vendor && desc.Product == product + return desc.Vendor == graphtec && desc.Product == cc200_20 } func NewDevice() (d Device) { -- cgit v1.2.3