_udev_rule("2341",None,'ENV{ID_MM_DEVICE_IGNORE}="1"'),# Arduino SA
_udev_rule("2A03",None,'ENV{ID_MM_DEVICE_IGNORE}="1"')# dog hunter AG
}
# These rules are no longer recommended, only use them to check for their presence.
@ -197,18 +195,17 @@ def check_udev_rules():
current_rules.add(line)
# Check if the desired rules are among the currently present rules
forbootloader,rules indesired_rules.items():
for rules indesired_rules.items():
# For caterina, check if ModemManager is running
ifbootloader=="caterina":
ifcheck_modem_manager():
ok=False
cli.log.warn("{bg_yellow}Detected ModemManager without the necessary udev rules. Please either disable it or set the appropriate udev rules if you are using a Pro Micro.")
ifcheck_modem_manager():
ok=False
cli.log.warn("{bg_yellow}Detected ModemManager without the necessary udev rules. Please either disable it or set the appropriate udev rules if you are using a Pro Micro.")
cli.log.warn("{bg_yellow}Found old, deprecated udev rules for '%s' boards. The new rules on https://docs.qmk.fm/#/faq_build?id=linux-udev-rules offer better security with the same functionality.",bootloader)
else:
cli.log.warn("{bg_yellow}Missing udev rules for '%s' boards. You'll need to use `sudo` in order to flash them.",bootloader)
cli.log.warn("{bg_yellow}Found old, deprecated udev rules for '%s' boards. The new rules on https://docs.qmk.fm/#/faq_build?id=linux-udev-rules offer better security with the same functionality.",bootloader)
else:
cli.log.warn("{bg_yellow}Missing udev rules for '%s' boards. You'll need to use `sudo` in order to flash them.",bootloader)