summaryrefslogtreecommitdiff
path: root/components/utilities/rt-link/src
diff options
context:
space:
mode:
authorCXSforHPU <[email protected]>2026-11-07 17:16:10 +0800
committerRbb666 <[email protected]>2026-11-18 09:11:48 +0800
commit629a7970ebb0902383db6cbc003e5bc248ff76d6 (patch)
tree222a4396ec34b3a15a0e158809f2ddbb469f791c /components/utilities/rt-link/src
parent265116d74d753d5605546f798a9a8f54c571b22b (diff)
[components][dfs]Class-encode RT_DEVICE_CTRL_* commands to fix POSIX/dev command collisions: class in high byte, index low byte.
Diffstat (limited to 'components/utilities/rt-link/src')
-rw-r--r--components/utilities/rt-link/src/rtlink_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/utilities/rt-link/src/rtlink_dev.c b/components/utilities/rt-link/src/rtlink_dev.c
index b4f1add678..b130b27927 100644
--- a/components/utilities/rt-link/src/rtlink_dev.c
+++ b/components/utilities/rt-link/src/rtlink_dev.c
@@ -320,7 +320,7 @@ rt_err_t rt_link_dev_control(rt_device_t dev, int cmd, void *args)
{
RT_ASSERT(dev != RT_NULL);
- if (cmd & RT_DEVICE_CTRL_CONFIG)
+ if ((cmd & ~RT_LINK_DEVICE_MASK) == RT_DEVICE_CTRL_CONFIG)
{
if (args == RT_NULL)
return -RT_EINVAL;