From 9c9be1dc88edb64582ba07710dbcf517ccb5d1af Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 8 Oct 2023 00:14:29 -0400 Subject: [PATCH] correction in terms of error detection --- ...in-in-the-middle-new-approach-now-with-replacement.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/B6-temp-TCU-main-in-the-middle-new-approach-now-with-replacement.txt b/B6-temp-TCU-main-in-the-middle-new-approach-now-with-replacement.txt index ed453d02..7b348c43 100644 --- a/B6-temp-TCU-main-in-the-middle-new-approach-now-with-replacement.txt +++ b/B6-temp-TCU-main-in-the-middle-new-approach-now-with-replacement.txt @@ -242,16 +242,16 @@ function relayTpPayloadFromTCU(bus, id, dlc, data) -- print("h5/h7 " ..H4 .." " ..H7) if H7 == 0 then - print("I sniff diag: TCU is happy!") +-- print("I sniff diag: TCU is happy!") else - print("I sniff diag: TCU has ERROR ERROR ERROR") +-- print("I sniff diag: TCU has ERROR ERROR ERROR") end end payLoadIndex = payLoadIndex + 1 - if top4 == 1 then + if top4 == 1 or top4 == 2 then payLoadIndex = 0 len = data[3] @@ -259,7 +259,7 @@ function relayTpPayloadFromTCU(bus, id, dlc, data) if len == 2 then print("I sniff TCU NO CODES") else - print("I sniff TCU NO CODES") + print("**************** I sniff ERROR ERROR " .. data[5]) end end