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

Merge pull request #20077 from benpicco/cpu/sam0_common/adc_continuous-fix

cpu/sam0_common: adc_continuous: fix uninitialized access
This commit is contained in:
Marian Buschsieweke 2023-11-10 18:36:30 +00:00 committed by GitHub
commit 60921df406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;