Fix typo in ADC switch on config field Samples

This commit is contained in:
ardnew
2020-12-15 21:44:17 -06:00
committed by deadprogram
parent 06f231468d
commit 7842e6940d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -343,7 +343,7 @@ func (a ADC) Configure(config ADCConfig) {
// Averaging (see datasheet table in AVGCTRL register description)
var samples uint32
switch config.Resolution {
switch config.Samples {
case 1:
samples = sam.ADC_AVGCTRL_SAMPLENUM_1
case 2:
+1 -1
View File
@@ -757,7 +757,7 @@ func (a ADC) Configure(config ADCConfig) {
// Averaging (see datasheet table in AVGCTRL register description)
var samples uint32
switch config.Resolution {
switch config.Samples {
case 1:
samples = sam.ADC_AVGCTRL_SAMPLENUM_1
case 2: