File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ extern "C" {
3131static uint32_t saadcReference = SAADC_CH_CONFIG_REFSEL_Internal ;
3232static uint32_t saadcGain = SAADC_CH_CONFIG_GAIN_Gain1_6 ;
3333
34- static uint32_t saadcOversampling = SAADC_OVERSAMPLE_OVERSAMPLE_Bypass ;
3534static bool saadcBurst = SAADC_CH_CONFIG_BURST_Disabled ;
3635
3736#if 0 // Note: Adafruit use seperated HardwarePWM class
@@ -129,8 +128,7 @@ void analogReference( eAnalogReference ulMode )
129128
130129void analogOversampling ( uint32_t ulOversampling )
131130{
132- if (ulOversampling > 0 ) saadcBurst = SAADC_CH_CONFIG_BURST_Enabled ; // burst mode has to be enable to use oversampling
133- else saadcBurst = SAADC_CH_CONFIG_BURST_Disabled ;
131+ saadcBurst = SAADC_CH_CONFIG_BURST_Enabled ;
134132
135133 switch (ulOversampling ) {
136134 case 0 :
@@ -164,8 +162,6 @@ void analogOversampling( uint32_t ulOversampling )
164162 NRF_SAADC -> OVERSAMPLE = SAADC_OVERSAMPLE_OVERSAMPLE_Over256x ;
165163 break ;
166164 }
167-
168- saadcBurst = SAADC_CH_CONFIG_BURST_Enabled ;
169165}
170166
171167uint32_t analogRead ( uint32_t ulPin )
You can’t perform that action at this time.
0 commit comments