From c5863dc7cdfb7559ec8e05deafee857d71e2aafd Mon Sep 17 00:00:00 2001 From: Oskar Weigl Date: Tue, 11 Sep 2018 18:49:10 -0700 Subject: [PATCH] Update utils.py --- tools/odrive/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/odrive/utils.py b/tools/odrive/utils.py index 26087422..95104d72 100755 --- a/tools/odrive/utils.py +++ b/tools/odrive/utils.py @@ -151,7 +151,7 @@ def setup_udev_rules(logger): logger.error("This command only makes sense on Linux") if os.getuid() != 0: logger.warn("you should run this as root, otherwise it will probably not work") - with open('/etc/udev/rules.d/99-odrive.rules', 'w') as file: + with open('/etc/udev/rules.d/91-odrive.rules', 'w') as file: file.write('SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0d3[0-9]", MODE="0666"\n') subprocess.check_call(["udevadm", "control", "--reload-rules"]) subprocess.check_call(["udevadm", "trigger"])