mirror of https://github.com/rusefi/rusefi.git
refactoring
This commit is contained in:
parent
1b4bbb8772
commit
3477d4bd07
|
@ -35,7 +35,16 @@ function toHexString(num) \
|
|||
return result \
|
||||
end \
|
||||
\
|
||||
\
|
||||
function arrayToString(arr) \
|
||||
local str = \"\" \
|
||||
local index = 1 \
|
||||
while arr[index] ~= nil do \
|
||||
str = str..\" \"..toHexString(arr[index]) \
|
||||
index = index + 1 \
|
||||
end \
|
||||
return str \
|
||||
end \
|
||||
\
|
||||
\
|
||||
"
|
||||
|
||||
|
|
|
@ -23,17 +23,6 @@ TEST(LuaVag, Checksum) {
|
|||
TEST(LuaVag, packMotor1) {
|
||||
const char* realdata = PRINT_ARRAY ARRAY_EQUALS SET_TWO_BYTES R"(
|
||||
|
||||
|
||||
function arrayToString(arr)
|
||||
local str = ""
|
||||
local index = 1
|
||||
while arr[index] ~= nil do
|
||||
str = str.." "..toHexString(arr[index])
|
||||
index = index + 1
|
||||
end
|
||||
return str
|
||||
end
|
||||
|
||||
function testFunc()
|
||||
engineTorque = 15.21
|
||||
rpm = 1207.1
|
||||
|
|
Loading…
Reference in New Issue