diff options
| author | woody <[email protected]> | 2022-02-10 18:18:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-10 18:18:52 +0800 |
| commit | 6d0caf7bfc15bb1be88329e941322dd17c04264c (patch) | |
| tree | 37d6207b9db52f9d06cabdaaa96b3daeeabdb332 /components/drivers | |
| parent | af702e048d17a3310655fc32dea5f33f17de68b8 (diff) | |
修改dac.c函数名称错误 (#5591)
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/misc/dac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/misc/dac.c b/components/drivers/misc/dac.c index 45b90d2106..2aa5e12124 100644 --- a/components/drivers/misc/dac.c +++ b/components/drivers/misc/dac.c @@ -124,7 +124,7 @@ rt_err_t rt_dac_enable(rt_dac_device_t dev, rt_uint32_t channel) return result; } -rt_err_t rt_dac_disabled(rt_dac_device_t dev, rt_uint32_t channel) +rt_err_t rt_dac_disable(rt_dac_device_t dev, rt_uint32_t channel) { rt_err_t result = RT_EOK; @@ -200,7 +200,7 @@ static int dac(int argc, char **argv) { if (argc == 3) { - result = rt_dac_disabled(dac_device, atoi(argv[2])); + result = rt_dac_disable(dac_device, atoi(argv[2])); result_str = (result == RT_EOK) ? "success" : "failure"; rt_kprintf("%s channel %d disable %s \n", dac_device->parent.parent.name, atoi(argv[2]), result_str); } |
