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" {
31
31
static uint32_t saadcReference = SAADC_CH_CONFIG_REFSEL_Internal ;
32
32
static uint32_t saadcGain = SAADC_CH_CONFIG_GAIN_Gain1_6 ;
33
33
34
- static uint32_t saadcOversampling = SAADC_OVERSAMPLE_OVERSAMPLE_Bypass ;
35
34
static bool saadcBurst = SAADC_CH_CONFIG_BURST_Disabled ;
36
35
37
36
#if 0 // Note: Adafruit use seperated HardwarePWM class
@@ -129,8 +128,7 @@ void analogReference( eAnalogReference ulMode )
129
128
130
129
void analogOversampling ( uint32_t ulOversampling )
131
130
{
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 ;
134
132
135
133
switch (ulOversampling ) {
136
134
case 0 :
@@ -164,8 +162,6 @@ void analogOversampling( uint32_t ulOversampling )
164
162
NRF_SAADC -> OVERSAMPLE = SAADC_OVERSAMPLE_OVERSAMPLE_Over256x ;
165
163
break ;
166
164
}
167
-
168
- saadcBurst = SAADC_CH_CONFIG_BURST_Enabled ;
169
165
}
170
166
171
167
uint32_t analogRead ( uint32_t ulPin )
You can’t perform that action at this time.
0 commit comments