From bd0ec913f50564263fdfb7d3e47151c86773ec39 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Wed, 20 Jan 2016 09:02:25 -0800 Subject: [PATCH] Invert TPMS Manchester decoding, fix dependent CRC/checksums. --- firmware/application/tpms_app.cpp | 6 +++--- firmware/application/tpms_app.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/application/tpms_app.cpp b/firmware/application/tpms_app.cpp index 336a86b8..b8076363 100644 --- a/firmware/application/tpms_app.cpp +++ b/firmware/application/tpms_app.cpp @@ -63,9 +63,9 @@ size_t Packet::crc_valid_length() const { bytes[i] = reader_.read(i * 8, 8); } - uint32_t checksum = 6; - CRC crc_72 { 0x01, 0xff }; - CRC crc_80 { 0x01, 0xff }; + uint32_t checksum = 0; + CRC crc_72 { 0x01, 0x00 }; + CRC crc_80 { 0x01, 0x00 }; for(size_t i=0; i