MWWorks / mw_calc_numpad

7 stars 5 forks source link

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

Open aihk opened 1 year ago

aihk commented 1 year ago

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 commented 1 year ago

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!