This commit is contained in:
Matthew Kennedy 2023-11-03 15:18:47 -07:00
parent f4a30b5833
commit 2b519d13e8
3 changed files with 11 additions and 13 deletions

View File

@ -202,10 +202,18 @@ 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);
return efi::size(MRE_OUTPUTS);
}
Gpio* getBoardMetaOutputs() {
return MRE_OUTPUTS;
return MRE_OUTPUTS;
}

View File

@ -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

View File

@ -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;