From 127a7982c35d8e16942e289a658a22a21c91c0a5 Mon Sep 17 00:00:00 2001 From: KimIV Date: Thu, 27 Feb 2020 09:54:27 +0500 Subject: [PATCH] Update tpms_packet.cpp (#309) I experimented with my sensors from a Ford Kuga. For data verification I used the Autel MaxiTPMS TS508 device. --- firmware/common/tpms_packet.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/common/tpms_packet.cpp b/firmware/common/tpms_packet.cpp index decc2361..a2abaada 100644 --- a/firmware/common/tpms_packet.cpp +++ b/firmware/common/tpms_packet.cpp @@ -42,7 +42,7 @@ Optional Packet::reading_fsk_19k2_schrader() const { Reading::Type::FLM_64, reader_.read(0, 32), Pressure { static_cast(reader_.read(32, 8)) * 4 / 3 }, - Temperature { static_cast(reader_.read(40, 8) & 0x7f) - 50 } + Temperature { static_cast(reader_.read(40, 8) & 0x7f) - 56 } }; case 72: @@ -50,7 +50,7 @@ Optional Packet::reading_fsk_19k2_schrader() const { Reading::Type::FLM_72, reader_.read(0, 32), Pressure { static_cast(reader_.read(40, 8)) * 4 / 3 }, - Temperature { static_cast(reader_.read(48, 8)) - 50 } + Temperature { static_cast(reader_.read(48, 8)) - 56 } }; case 80: @@ -58,7 +58,7 @@ Optional Packet::reading_fsk_19k2_schrader() const { Reading::Type::FLM_80, reader_.read(8, 32), Pressure { static_cast(reader_.read(48, 8)) * 4 / 3 }, - Temperature { static_cast(reader_.read(56, 8)) - 50 } + Temperature { static_cast(reader_.read(56, 8)) - 56 } }; default: @@ -124,7 +124,7 @@ Optional Packet::reading_ook_8k4_schrader() const { Reading::Type::GMC_96, id, Pressure { static_cast(value_1) * 4 / 3 }, - Temperature { static_cast(value_0) - 50 } + Temperature { static_cast(value_0) - 56 } }; } else { return { };