fix IS_ADC_CHANNEL() bug on STM32F411xE variants#1161
fix IS_ADC_CHANNEL() bug on STM32F411xE variants#1161fpistm merged 2 commits intostm32duino:masterfrom
Conversation
|
Hi @TheCodeSharman |
|
|
@TheCodeSharman About the PIO change, I have no knowledge about this. Is is a recent change? @valeros could you tell me if this change is required? Thanks in advance. |
|
Hi @fpistm ! Yes, the changes are actual, but it might be a good idea if I submit a new PR with the latest revision of our build script. I suppose this PR isn't going to be merged, but anyway @TheCodeSharman do you mind deleting changes in PS: @fpistm Could you please shed some light on your ETA of the the next stable release of the STM32 Arduino core? |
|
@valeros And yes the PIO commit is out of scope of the PR. So, if you can provide a separate PR that would be great. |
c77d7e4 to
1abb3f8
Compare
|
Done. That was meant for a different branch. |
|
OK I've made this same PR on the upstream repo: STMicroelectronics/STM32CubeF4#36 - |
|
Thanks @TheCodeSharman |
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
This PR fixes an issue where the following is returning false for the STM32F411xE chip:
IS_ADC_CHANNEL(ADC_CHANNEL_TEMPSENSOR)As a result of this the example code on the Wiki for reading the internal temperature sensor returns a result of -266 because analogRead(ATEMP) always returns 0 indicating an error.
Note: Reviewing the code it looks like the definition of ADC_CHANNEL_TEMPSENSOR is inconsistent with the definition of IS_ADC_CHANNEL for other boards too? I've only made the minimal changes for the board I own however.