From 168a8b4d77b56bd963a2c230e42db5d4017f2b5c Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 4 Mar 2023 21:17:42 -0500 Subject: [PATCH] i hope it's still valid Lua only:hellen-honda-k --- firmware/controllers/lua/examples/350z-ac.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/lua/examples/350z-ac.txt b/firmware/controllers/lua/examples/350z-ac.txt index 1072307128..9f25d8e23b 100644 --- a/firmware/controllers/lua/examples/350z-ac.txt +++ b/firmware/controllers/lua/examples/350z-ac.txt @@ -1,5 +1,3 @@ -canRxAdd(0x35d) - OUT_1F9 = 0x1F9 OUT_233 = 0x233 OUT_23D = 0x23D @@ -70,7 +68,7 @@ function onTick() end -function onCanRx(bus, id, dlc, data) +function onAcCanRx(bus, id, dlc, data) --print('got CAN id=' ..id ..' dlc=' ..dlc) --print('ac value is= '..data[1]) if data[1] == 193 then @@ -83,4 +81,6 @@ function onCanRx(bus, id, dlc, data) --print('ac is off') end -end \ No newline at end of file +end + +canRxAdd(1, 0x35d, onAcCanRx)