mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
[dac] add get resolution method
This commit is contained in:
@@ -58,7 +58,7 @@ static rt_err_t _adc_control(rt_device_t dev, int cmd, void *args)
|
||||
if(resolution != 0)
|
||||
{
|
||||
*((rt_uint8_t*)args) = resolution;
|
||||
LOG_D("ADC resolution:%d", resolution);
|
||||
LOG_D("resolution: %d bits", resolution);
|
||||
result = RT_EOK;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user