diff options
author | ardnew <[email protected]> | 2020-12-15 21:44:17 -0600 |
---|---|---|
committer | deadprogram <[email protected]> | 2021-02-01 12:25:18 +0100 |
commit | 7842e6940dc3c0ef76937de8ed29882004e017dc (patch) | |
tree | 3ae5690c848126a2b2bb249f12f0a220d5091704 /src/machine/machine_atsamd51.go | |
parent | 06f231468da34a546a3f0c6c3cd1483e21b47994 (diff) | |
download | tinygo-7842e6940dc3c0ef76937de8ed29882004e017dc.tar.gz tinygo-7842e6940dc3c0ef76937de8ed29882004e017dc.zip |
Fix typo in ADC switch on config field Samples
Diffstat (limited to 'src/machine/machine_atsamd51.go')
-rw-r--r-- | src/machine/machine_atsamd51.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machine_atsamd51.go b/src/machine/machine_atsamd51.go index 4098bc5e9..8b035fc2f 100644 --- a/src/machine/machine_atsamd51.go +++ b/src/machine/machine_atsamd51.go @@ -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: |