mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 03:34:58 -04:00
RecentEntries: Extract more algorithms.
This commit is contained in:
parent
c8f7863c83
commit
bd785d8bf4
4 changed files with 36 additions and 36 deletions
|
@ -199,7 +199,7 @@ void TPMSAppView::on_packet(const tpms::Packet& packet) {
|
|||
const auto reading_opt = packet.reading();
|
||||
if( reading_opt.is_valid() ) {
|
||||
const auto reading = reading_opt.value();
|
||||
auto& entry = recent.on_packet({ reading.type(), reading.id() });
|
||||
auto& entry = ::on_packet(recent, TPMSRecentEntry::Key { reading.type(), reading.id() });
|
||||
entry.update(reading);
|
||||
recent_entries_view.set_dirty();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue