parent
d8ec19db9a
commit
e1e03dbc74
|
@ -65,17 +65,6 @@ void configureRusefiLuaUtilHooks(lua_State* l) {
|
||||||
return 1;
|
return 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
#ifdef EFI_KLINE
|
|
||||||
extern uint8_t kvalues[8];
|
|
||||||
lua_register(l, "temp_k",
|
|
||||||
[](lua_State* l) {
|
|
||||||
auto index = luaL_checkinteger(l, 1);
|
|
||||||
auto value = luaL_checkinteger(l, 2);
|
|
||||||
kvalues[index] = value;
|
|
||||||
return 0;
|
|
||||||
});
|
|
||||||
#endif // EFI_KLINE
|
|
||||||
|
|
||||||
lua_register(l, "findSetting",
|
lua_register(l, "findSetting",
|
||||||
[](lua_State* l) {
|
[](lua_State* l) {
|
||||||
auto name = luaL_checklstring(l, 1, nullptr);
|
auto name = luaL_checklstring(l, 1, nullptr);
|
||||||
|
|
|
@ -18,7 +18,7 @@ size_t readWhileGives(ByteSource source, uint8_t *buffer, size_t bufferSize) {
|
||||||
|
|
||||||
#ifdef EFI_KLINE
|
#ifdef EFI_KLINE
|
||||||
|
|
||||||
uint8_t kvalues[8];
|
static uint8_t kvalues[8];
|
||||||
|
|
||||||
#define HONDA_K_BCM_STATUS_NIBBLE 0x0
|
#define HONDA_K_BCM_STATUS_NIBBLE 0x0
|
||||||
#define HONDA_K_BCM_REQ_NIBBLE 0x1
|
#define HONDA_K_BCM_REQ_NIBBLE 0x1
|
||||||
|
@ -190,6 +190,9 @@ void initKLine() {
|
||||||
engineConfiguration->kLineDoHondaSend = false;
|
engineConfiguration->kLineDoHondaSend = false;
|
||||||
efiPrintf("kline send %d", engineConfiguration->kLineDoHondaSend);
|
efiPrintf("kline send %d", engineConfiguration->kLineDoHondaSend);
|
||||||
});
|
});
|
||||||
|
addConsoleActionII("temp_k", [](int index, int value) {
|
||||||
|
kvalues[index] = value;
|
||||||
|
});
|
||||||
|
|
||||||
#endif // EFI_KLINE
|
#endif // EFI_KLINE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue