添加新串口小板配置#34
Open
ZiDXie wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
该 PR 旨在为新的串口小板添加 udev 设备映射规则,以便在系统中通过固定的符号链接识别设备;同时调整了开发工具链,移除了 pre-commit 中的 catkin_lint 钩子配置。
Changes:
- 在
scripts/udev/rm.rules中新增基于 USB 属性的规则,尝试为新串口设备设置权限与usbReferee符号链接,并忽略 ModemManager 探测。 - 将原先 ecat 相关的两条 udev 规则注释掉。
- 从
.pre-commit-config.yaml中移除catkin_lintpre-commit hook。
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| scripts/udev/rm.rules | 新增“新串口小板”相关 udev 匹配/映射规则,并注释部分旧规则 |
| .pre-commit-config.yaml | 移除 catkin_lint 的 pre-commit 钩子 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| #udevadm info -a -n /dev/ttyACM* | grep -E "idVendor|idProduct|bInterfaceNumber" | ||
| # use for new serial | ||
| SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="55d2", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1" |
| #udevadm info -a -n /dev/ttyACM* | grep -E "idVendor|idProduct|bInterfaceNumber" | ||
| # use for new serial | ||
| SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="55d2", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1" | ||
| SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="02", MODE:="0666", SYMLINK+="usbReferee" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
增加了新的映射规则。