Skip to content

Commit

Permalink
app: use newly granted USB VID:PID 1209:ca01 by default
Browse files Browse the repository at this point in the history
Use USB VID:PID 1209:ca01 generously granted by pid.codes by default (see
https://pid.codes/1209/CA01/).

Signed-off-by: Henrik Brix Andersen <[email protected]>
  • Loading branch information
henrikbrixandersen committed Sep 10, 2024
1 parent 31d65ff commit 266e773
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 99-cannectivity.rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
ACTION!="add", SUBSYSTEM!="usb_device", GOTO="cannectivity_rules_end"

# Replace VID and PID with CONFIG_CANNECTIVITY_USB_VID and CONFIG_CANNECTIVITY_USB_PID values
ATTR{idVendor}=="1209", ATTR{idProduct}=="0001", RUN+="/sbin/modprobe -b gs_usb" MODE="660", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="drivers", ENV{DEVPATH}=="/bus/usb/drivers/gs_usb", ATTR{new_id}="1209 0001"
ATTR{idVendor}=="1209", ATTR{idProduct}=="ca01", RUN+="/sbin/modprobe -b gs_usb" MODE="660", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="drivers", ENV{DEVPATH}=="/bus/usb/drivers/gs_usb", ATTR{new_id}="1209 ca01"

LABEL="cannectivity_rules_end"
2 changes: 1 addition & 1 deletion app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ config CANNECTIVITY_USB_VID

config CANNECTIVITY_USB_PID
hex "USB device Product ID (PID)"
default 0x0001
default 0xca01
help
CANnectivity USB device Product ID (PID).

Expand Down

0 comments on commit 266e773

Please sign in to comment.