From c38beb70e5983c4f9f61618881e14e572a1b99ac Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 7 Dec 2015 15:35:24 -0800 Subject: [PATCH] Only show ERT packets that pass CRC check. --- firmware/application/app_ert.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/firmware/application/app_ert.cpp b/firmware/application/app_ert.cpp index 96417703..f1d4aa05 100644 --- a/firmware/application/app_ert.cpp +++ b/firmware/application/app_ert.cpp @@ -124,7 +124,7 @@ bool ERTModel::on_packet(const ert::Packet& packet) { log_file.write_entry(packet.received_at(), formatted.data + "/" + formatted.errors); } - return true; + return packet.crc_ok(); } namespace ui { @@ -161,7 +161,6 @@ void ERTView::on_packet(const ert::Packet& packet) { msg += to_string_dec_uint(packet.id(), 10); msg += " "; msg += to_string_dec_uint(packet.consumption(), 10); - msg += packet.crc_ok() ? " *" : " x"; break; case ERTPacket::Type::IDM: @@ -169,7 +168,6 @@ void ERTView::on_packet(const ert::Packet& packet) { msg += to_string_dec_uint(packet.id(), 10); msg += " "; msg += to_string_dec_uint(packet.consumption(), 10); - msg += packet.crc_ok() ? " *" : " x"; break; default: