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:
commit
60921df406
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user