This commit is contained in:
rusefi 2017-04-02 01:46:27 -04:00
parent 6bcaddf974
commit d20ac67d63
2 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,7 @@ endif
# Architecture or project specific options
#
USE_FPU = hard
USE_FPU = softfp
# Enables the use of FPU on Cortex-M4 (no, softfp, hard).
ifeq ($(USE_FPU),)

View File

@ -140,6 +140,10 @@ void ThermistorMath::prepareThermistorCurve(thermistor_conf_s *tc) {
float L1 = logf(tc->resistance_1);
if (L1 == tc->resistance_1) {
/**
* See https://github.com/rusefi/rusefi/issues/375
* See https://sourceforge.net/p/rusefi/tickets/149/
*/
firmwareError(CUSTOM_ERR_NATURAL_LOGARITHM_ERROR, "Natural logarithm logf() is broken: %f", tc->resistance_1);
}
float L2 = logf(tc->resistance_2);