mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-06 10:01:59 +00:00
RecentEntries: Extract more algorithms.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user