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

Use a calculator to compile the error on the chip of STM32F103 #1

Open
aihk opened this issue Mar 11, 2023 · 1 comment
Open

Use a calculator to compile the error on the chip of STM32F103 #1

aihk opened this issue Mar 11, 2023 · 1 comment

Comments

@aihk
Copy link

aihk commented Mar 11, 2023

When transplanted the calculator to the STM32F103 chip ~ Compile appear: Calc.c: 100: 5: Warning: Implicit Declaration of Function

'DTOSTRF' [-wimplicit-Function-DECLALATION] 100 | DTOSTRF (Result, CALC_DIGITS, MAX_DECIMALS, CALC_RESULT);

Is there any way to solve it?

@MWWorks
Copy link
Owner

MWWorks commented Mar 12, 2023

I'm a bit of a hack, but I think the dtostrf function - which converts a float into a string - might be AVR specific? Most mentions of it are for Arduino but QMK is not using the Arduino framework, so I think it's a feature of the C libraries for AVR.

Hopefully you can replace it with a similar function? Sorry to be vague, I've not done any STM!

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

No branches or pull requests

2 participants