mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-16 05:32:16 -04:00
RecentEntries: Extract more algorithms.
This commit is contained in:
parent
c8f7863c83
commit
bd785d8bf4
4 changed files with 36 additions and 36 deletions
|
@ -150,7 +150,7 @@ void ERTAppView::on_packet(const ert::Packet& packet) {
|
|||
}
|
||||
|
||||
if( packet.crc_ok() ) {
|
||||
auto& entry = recent.on_packet({ packet.id(), packet.commodity_type() });
|
||||
auto& entry = ::on_packet(recent, ERTRecentEntry::Key { packet.id(), packet.commodity_type() });
|
||||
entry.update(packet);
|
||||
recent_entries_view.set_dirty();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue