auto-sync
This commit is contained in:
parent
b1ac047ad9
commit
60d04b422e
|
@ -8,10 +8,13 @@
|
|||
#include "main.h"
|
||||
#include "le_functions.h"
|
||||
#include "allsensors.h"
|
||||
#include "rpm_calculator.h"
|
||||
|
||||
extern LENameOrdinalPair * LE_FIRST;
|
||||
|
||||
static LENameOrdinalPair leRpm(LE_METHOD_RPM, "rpm");
|
||||
static LENameOrdinalPair leTps(LE_METHOD_TPS, "tps");
|
||||
static LENameOrdinalPair leMaf(LE_METHOD_MAF, "maf");
|
||||
static LENameOrdinalPair leFan(LE_METHOD_FAN, "fan");
|
||||
static LENameOrdinalPair leCoolant(LE_METHOD_COOLANT, "coolant");
|
||||
static LENameOrdinalPair leFanOnSetting(LE_METHOD_FAN_ON_SETTING, "fan_on_setting");
|
||||
|
@ -25,6 +28,12 @@ float getLEValue(Engine *engine, le_action_e action) {
|
|||
// return ;
|
||||
case LE_METHOD_COOLANT:
|
||||
return getCoolantTemperature(engine->engineConfiguration2);
|
||||
case LE_METHOD_INTAKE_AIR:
|
||||
return getIntakeAirTemperature(engine->engineConfiguration2);
|
||||
case LE_METHOD_RPM:
|
||||
return engine->rpmCalculator->rpm();
|
||||
case LE_METHOD_TIME_SINCE_BOOT:
|
||||
return getTimeNowSeconds();
|
||||
default:
|
||||
firmwareError("No value for %d", action);
|
||||
return NAN;
|
||||
|
|
|
@ -30,6 +30,9 @@ typedef enum {
|
|||
LE_METHOD_TIME_SINCE_BOOT = 103,
|
||||
LE_METHOD_FAN_ON_SETTING = 104,
|
||||
LE_METHOD_FAN_OFF_SETTING = 105,
|
||||
LE_METHOD_TPS = 106,
|
||||
LE_METHOD_MAF = 107,
|
||||
LE_METHOD_INTAKE_AIR = 108,
|
||||
|
||||
Force_4b_le_action = ENUM_SIZE_HACK,
|
||||
|
||||
|
|
|
@ -241,5 +241,5 @@ void firmwareError(const char *fmt, ...) {
|
|||
}
|
||||
|
||||
int getRusEfiVersion(void) {
|
||||
return 20141005;
|
||||
return 20141006;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue