Skip to content

Commit 5c3363b

Browse files
aykevldeadprogram
authored andcommitted
nrf: fix typo in ADC configuration
This shouldn't change behavior (both values are 0), but it's a bit more correct.
1 parent 9404bb8 commit 5c3363b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/machine/machine_nrf52xxx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func InitADC() {
2626
// Samples can be 1(default), 2, 4, 8, 16, 32, 64, 128, 256 samples
2727
func (a *ADC) Configure(config ADCConfig) {
2828
var configVal uint32 = nrf.SAADC_CH_CONFIG_RESP_Bypass<<nrf.SAADC_CH_CONFIG_RESP_Pos |
29-
nrf.SAADC_CH_CONFIG_RESP_Bypass<<nrf.SAADC_CH_CONFIG_RESN_Pos |
29+
nrf.SAADC_CH_CONFIG_RESN_Bypass<<nrf.SAADC_CH_CONFIG_RESN_Pos |
3030
nrf.SAADC_CH_CONFIG_REFSEL_Internal<<nrf.SAADC_CH_CONFIG_REFSEL_Pos |
3131
nrf.SAADC_CH_CONFIG_MODE_SE<<nrf.SAADC_CH_CONFIG_MODE_Pos
3232

0 commit comments

Comments
 (0)