mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Rename AISView::log to on_packet.
This commit is contained in:
parent
64b9bfa35f
commit
1c191bcd4f
@ -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; }
|
||||
|
@ -152,8 +152,8 @@ private:
|
||||
};
|
||||
|
||||
std::list<RecentEntry> recent;
|
||||
void on_packet(const baseband::ais::Packet& packet);
|
||||
|
||||
void log(const baseband::ais::Packet& packet);
|
||||
};
|
||||
|
||||
} /* namespace ui */
|
||||
|
Loading…
Reference in New Issue
Block a user