mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 10:36:04 +08:00
[update] format code
This commit is contained in:
@@ -47,11 +47,11 @@ static rt_err_t _dac_control(rt_device_t dev, int cmd, void *args)
|
||||
{
|
||||
return -RT_ENOSYS;
|
||||
}
|
||||
if (cmd == RT_dac_CMD_ENABLE)
|
||||
if (cmd == RT_DAC_CMD_ENABLE)
|
||||
{
|
||||
result = dac->ops->enabled(dac, (rt_uint32_t)args);
|
||||
}
|
||||
else if (cmd == RT_dac_CMD_DISABLE)
|
||||
else if (cmd == RT_DAC_CMD_DISABLE)
|
||||
{
|
||||
result = dac->ops->disabled(dac, (rt_uint32_t)args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user