4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 02:00:25 +08:00

修改dac.c函数名称错误 (#5591)

This commit is contained in:
woody 2022-02-10 18:18:52 +08:00 committed by GitHub
parent af702e048d
commit 6d0caf7bfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}