Skip to content

Fix temperature_stm driver to use 16 bits#3159

Merged
bors[bot] merged 1 commit into
tock:masterfrom
WyliodrinEmbeddedIoT:temperature_stm_driver_fix
Aug 24, 2022
Merged

Fix temperature_stm driver to use 16 bits#3159
bors[bot] merged 1 commit into
tock:masterfrom
WyliodrinEmbeddedIoT:temperature_stm_driver_fix

Conversation

@alexandruradovici

Copy link
Copy Markdown
Contributor

Pull Request Overview

This pull request fixes temperature driver for STM to use the correct encoding (16 bits instead of 12). The driver was assuming that the received value was using 12 bits, but the value was using 16.

This error was most probably due to a fix in the STM chip to comply with the adc trait.

Testing Strategy

This pull request was tested using an STM32F412g Discovery Kit

TODO or Help Wanted

N/A

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@alexandruradovici alexandruradovici mentioned this pull request Aug 24, 2022
@hudson-ayers hudson-ayers added the release-blocker Issue or PR that must be resolved before the next release label Aug 24, 2022
@hudson-ayers

Copy link
Copy Markdown
Contributor

bors r+

@bors

bors Bot commented Aug 24, 2022

Copy link
Copy Markdown
Contributor

@bors bors Bot merged commit 429504a into tock:master Aug 24, 2022
sirchnik pushed a commit to sirchnik/tock that referenced this pull request May 12, 2026
3159: Fix temperature_stm driver to use 16 bits r=hudson-ayers a=alexandruradovici

### Pull Request Overview

This pull request fixes temperature driver for STM to use the correct encoding (16 bits instead of 12). The driver was assuming that the received value was using 12 bits, but the value was using 16. 

This error was most probably due to a fix in the STM chip to comply with the adc trait.

### Testing Strategy

This pull request was tested using an STM32F412g Discovery Kit


### TODO or Help Wanted

N/A


### Documentation Updated

- [x] Updated the relevant files in `/docs`, or no updates are required.

### Formatting

- [x] Ran `make prepush`.


Co-authored-by: Alexandru RADOVICI <alexandru.radovici@wyliodrin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-blocker Issue or PR that must be resolved before the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants