diff --git a/changelog.md b/changelog.md index c4f059a78..e0213063a 100644 --- a/changelog.md +++ b/changelog.md @@ -9,7 +9,7 @@ - Added Jlink as programmer to upload sketch #133 - Fixed issue with high speed uart baud ~ 1 Mbps (PR #158 thanks Ureloc) - Add HardwardPWM removePin(), refactor hwpwm.ino sketch -- fix print float with precision > 10 +- Fixed print float issue with precision > 10 ## 0.9.2 diff --git a/cores/nRF5/wiring_analog_nRF52.c b/cores/nRF5/wiring_analog_nRF52.c index 13439aa7f..9eafd4a9c 100644 --- a/cores/nRF5/wiring_analog_nRF52.c +++ b/cores/nRF5/wiring_analog_nRF52.c @@ -241,7 +241,7 @@ uint32_t analogRead( uint32_t ulPin ) | ((saadcReference << SAADC_CH_CONFIG_REFSEL_Pos) & SAADC_CH_CONFIG_REFSEL_Msk) | ((SAADC_CH_CONFIG_TACQ_3us << SAADC_CH_CONFIG_TACQ_Pos) & SAADC_CH_CONFIG_TACQ_Msk) | ((SAADC_CH_CONFIG_MODE_SE << SAADC_CH_CONFIG_MODE_Pos) & SAADC_CH_CONFIG_MODE_Msk) - | ((saadcBurst << SAADC_CH_CONFIG_BURST_Pos) & SAADC_CH_CONFIG_BURST_Msk); + | ((saadcBurst << SAADC_CH_CONFIG_BURST_Pos) & SAADC_CH_CONFIG_BURST_Msk); NRF_SAADC->CH[0].PSELN = pin; NRF_SAADC->CH[0].PSELP = pin;