diff options
Diffstat (limited to 'components/utilities/rt-link/src/rtlink_dev.c')
| -rw-r--r-- | components/utilities/rt-link/src/rtlink_dev.c | 2 |
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; |
