25 lines
484 B
C++
25 lines
484 B
C++
/**
|
|
* @file le_functions.cpp
|
|
*
|
|
* @date Oct 5, 2014
|
|
* @author Andrey Belomutskiy, (c) 2012-2014
|
|
*/
|
|
|
|
#include "main.h"
|
|
#include "le_functions.h"
|
|
#include "allsensors.h"
|
|
|
|
#if EFI_PROD_CODE || EFI_SIMULATOR
|
|
float getLEValue(Engine *engine, le_action_e action) {
|
|
switch(action) {
|
|
// case LE_METHOD_FAN:
|
|
// return ;
|
|
case LE_METHOD_COOLANT:
|
|
return getCoolantTemperature(engine->engineConfiguration2);
|
|
default:
|
|
firmwareError("No value for %d", action);
|
|
return NAN;
|
|
}
|
|
}
|
|
#endif
|