From 6cdada111845f9de17890392960cc92f257e2bde Mon Sep 17 00:00:00 2001 From: Mark Thompson <129641948+NotherNgineer@users.noreply.github.com> Date: Mon, 24 Apr 2023 09:59:43 -0500 Subject: [PATCH] Include ERT packet type in ert.txt log file --- firmware/application/apps/ert_app.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/application/apps/ert_app.cpp b/firmware/application/apps/ert_app.cpp index 894caca8..5c0adc91 100644 --- a/firmware/application/apps/ert_app.cpp +++ b/firmware/application/apps/ert_app.cpp @@ -63,7 +63,8 @@ std::string commodity_type(CommodityType value) { void ERTLogger::on_packet(const ert::Packet& packet) { const auto formatted = packet.symbols_formatted(); - log_file.write_entry(packet.received_at(), formatted.data + "/" + formatted.errors); + std::string entry = ert::format::type(packet.type()) + " " + formatted.data + "/" + formatted.errors; + log_file.write_entry(packet.received_at(), entry); } const ERTRecentEntry::Key ERTRecentEntry::invalid_key { };