1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/sam0_common: adc_continuous: fix uninitialized access

This commit is contained in:
Benjamin Valentin 2023-11-10 18:35:09 +01:00
parent 04617ee0a9
commit 5abdc7eb5f

View File

@ -357,6 +357,8 @@ static void _get_adcs(bool *adc0, bool *adc1)
*adc1 = false;
return;
#else
*adc0 = false;
*adc1 = false;
for (unsigned i = 0; i < ADC_NUMOF; ++i) {
if (adc_channels[i].dev == ADC0) {
*adc0 = true;