mirror of https://github.com/FOME-Tech/fome-fw.git
fix MRE
This commit is contained in:
parent
f4a30b5833
commit
2b519d13e8
|
@ -202,6 +202,14 @@ void setBoardDefaultConfiguration() {
|
|||
engineConfiguration->injectionMode = IM_SIMULTANEOUS;//IM_BATCH;// IM_SEQUENTIAL;
|
||||
}
|
||||
|
||||
static Gpio MRE_OUTPUTS[] = {
|
||||
MRE_INJ_1,
|
||||
MRE_INJ_2,
|
||||
MRE_INJ_3,
|
||||
MRE_INJ_4,
|
||||
MRE_LS_1,
|
||||
};
|
||||
|
||||
int getBoardMetaOutputsCount() {
|
||||
return efi::size(MRE_OUTPUTS);
|
||||
}
|
||||
|
|
|
@ -53,13 +53,3 @@
|
|||
|
||||
// 28 - AN volt 10
|
||||
#define MRE_IN_ANALOG_VOLT_10 EFI_ADC_4
|
||||
|
||||
#if HW_MICRO_RUSEFI
|
||||
static Gpio MRE_OUTPUTS[] = {
|
||||
MRE_INJ_1,
|
||||
MRE_INJ_2,
|
||||
MRE_INJ_3,
|
||||
MRE_INJ_4,
|
||||
MRE_LS_1,
|
||||
};
|
||||
#endif // HW_MICRO_RUSEFI
|
|
@ -664,7 +664,7 @@ void configureRusefiLuaHooks(lua_State* l) {
|
|||
uint16_t sig0;
|
||||
uint16_t sig1;
|
||||
auto humanIndex = luaL_checkinteger(l2, 1);
|
||||
auto ret = getSentValues(humanIndex - 1, &sig0, &sig1);
|
||||
getSentValues(humanIndex - 1, &sig0, &sig1);
|
||||
lua_pushnumber(l2, sig0);
|
||||
lua_pushnumber(l2, sig1);
|
||||
return 2;
|
||||
|
|
Loading…
Reference in New Issue