mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
cpu/cc2538/periph: adc_sample() now returns int32_t
This commit is contained in:
parent
3c7d95de02
commit
c4a84f01c0
@ -51,7 +51,7 @@ int adc_init(adc_t line)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int adc_sample(adc_t line, adc_res_t res)
|
||||
int32_t adc_sample(adc_t line, adc_res_t res)
|
||||
{
|
||||
/* check if adc line valid */
|
||||
if (line >= ADC_NUMOF) {
|
||||
|
Loading…
Reference in New Issue
Block a user