From 1c191bcd4f93074180cd5a6a14f20288c758e4b3 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sat, 5 Dec 2015 14:22:35 -0800 Subject: [PATCH] Rename AISView::log to on_packet. --- firmware/application/app_ais.cpp | 4 ++-- firmware/application/app_ais.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/application/app_ais.cpp b/firmware/application/app_ais.cpp index dbfeacce..f57cd2d0 100644 --- a/firmware/application/app_ais.cpp +++ b/firmware/application/app_ais.cpp @@ -336,7 +336,7 @@ void AISView::on_show() { rtcGetTime(&RTCD1, &datetime); const baseband::ais::Packet packet { datetime, message->packet.payload, message->packet.bits_received }; if( this->model.on_packet(packet) ) { - this->log(packet); + this->on_packet(packet); } } ); @@ -349,7 +349,7 @@ void AISView::on_hide() { View::on_hide(); } -void AISView::log(const baseband::ais::Packet& packet) { +void AISView::on_packet(const baseband::ais::Packet& packet) { const auto source_id = packet.source_id(); auto matching_recent = std::find_if(recent.begin(), recent.end(), [source_id](const AISView::RecentEntry& entry) { return entry.mmsi == source_id; } diff --git a/firmware/application/app_ais.hpp b/firmware/application/app_ais.hpp index 9b85066d..6f8a99f2 100644 --- a/firmware/application/app_ais.hpp +++ b/firmware/application/app_ais.hpp @@ -152,8 +152,8 @@ private: }; std::list recent; + void on_packet(const baseband::ais::Packet& packet); - void log(const baseband::ais::Packet& packet); }; } /* namespace ui */