From c5c0454e058a189cf3cd80fd5e894fbcea0f7153 Mon Sep 17 00:00:00 2001 From: Fredrik Orderud Date: Sun, 1 Sep 2024 19:59:53 +0200 Subject: [PATCH] Linux udev rule: Document need for updating idProduct to match Arduino board The rule is currently hardcoded to Arduino Leonardo (VID=2341, PID=8036). It therefore needs to be slightly modified to work against other boards, such as Arduino micro. --- linux/98-upower-hid.rules | 1 + 1 file changed, 1 insertion(+) diff --git a/linux/98-upower-hid.rules b/linux/98-upower-hid.rules index af59561..32ec825 100644 --- a/linux/98-upower-hid.rules +++ b/linux/98-upower-hid.rules @@ -1,3 +1,4 @@ +# TODO: Adjust idProduct to match ProductID for the Arduino board used ATTRS{idVendor}=="2341", ENV{UPOWER_VENDOR}="Arduino" ATTRS{idVendor}=="2341", ATTRS{idProduct}=="8036", ENV{UPOWER_BATTERY_TYPE}="ups"