Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix implementation of dtostrf #263

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Conversation

ederjc
Copy link
Member

@ederjc ederjc commented Jan 24, 2024

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

CONTRIBUTING.md also tells you what to expect in the PR process.

Description
Implementation of dtostrf() was based on sprintf(), which is not implemented for floats/doubles in Arduino according to [1].
This PR replaces dtostrf() implementation by one which is not based on sprintf() (reference is stdlib_noniso.h by Ivan Grokhotkov under GNU LGPL).

Context
Tested with XMC for Arduino 3.0 and XMC1100 2Go board.

[1] https://forum.arduino.cc/t/sprintf-with-float-values/937562

@jaenrig-ifx jaenrig-ifx self-assigned this Jan 24, 2024
@ederjc ederjc merged commit db00b98 into Infineon:master Jan 24, 2024
8 checks passed
@ederjc ederjc deleted the bugfix/dtostrf branch January 24, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants