Fix SAADC resolution set in sdk_config. analogin_read_u16 assumes 12-bit range but config was set to 10 bit range causing incorrect readings to be returned.

pull/10939/head
George Beckstein 2019-07-01 12:09:27 -04:00
parent 1cecfa480f
commit b08a26bfa0
1 changed files with 1 additions and 1 deletions

View File

@ -3124,7 +3124,7 @@
// <3=> 14 bit // <3=> 14 bit
#ifndef NRFX_SAADC_CONFIG_RESOLUTION #ifndef NRFX_SAADC_CONFIG_RESOLUTION
#define NRFX_SAADC_CONFIG_RESOLUTION 1 #define NRFX_SAADC_CONFIG_RESOLUTION 2
#endif #endif
// <o> NRFX_SAADC_CONFIG_OVERSAMPLE - Sample period // <o> NRFX_SAADC_CONFIG_OVERSAMPLE - Sample period