manual pre-merge - better error message

This commit is contained in:
rusefi 2017-04-01 16:52:55 -04:00
parent 01f0a8d409
commit 92ddc34108
2 changed files with 2 additions and 2 deletions

View File

@ -1813,7 +1813,7 @@ typedef enum {
CUSTOM_ERR_6111 = 6111,
CUSTOM_ERR_MAP_TYPE = 6112,
CUSTOM_ERR_THERM = 6113,
CUSTOM_ERR_LOG_ERROR = 6114,
CUSTOM_ERR_NATURAL_LOGARITHM_ERROR = 6114,
CUSTOM_ERR_LOOPED_QUEUE = 6115,
CUSTOM_ERR_PWM_1 = 6116,
CUSTOM_ERR_PWM_2 = 6117,

View File

@ -140,7 +140,7 @@ void ThermistorMath::prepareThermistorCurve(thermistor_conf_s *tc) {
float L1 = logf(tc->resistance_1);
if (L1 == tc->resistance_1) {
firmwareError(CUSTOM_ERR_LOG_ERROR, "log is broken?");
firmwareError(CUSTOM_ERR_NATURAL_LOGARITHM_ERROR, "Natural logarithm logf() is broken: %f", tc->resistance_1);
}
float L2 = logf(tc->resistance_2);
float L3 = logf(tc->resistance_3);