mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-11-25 14:16:20 -05:00
Openstreetmap support (#2765)
This commit is contained in:
parent
e6d4081c06
commit
4dda7cfaa5
20 changed files with 447 additions and 162 deletions
|
|
@ -456,7 +456,10 @@ void AISAppView::on_tick_second() {
|
|||
++timer_seconds;
|
||||
if (timer_seconds % 10 == 0) {
|
||||
if (recent_entry_detail_view.hidden()) return;
|
||||
recent_entry_detail_view.update_map_markers(recent);
|
||||
if (got_new_packet) {
|
||||
got_new_packet = false;
|
||||
recent_entry_detail_view.update_map_markers(recent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -475,7 +478,7 @@ void AISAppView::on_packet(const ais::Packet& packet) {
|
|||
if (logger) {
|
||||
logger->on_packet(packet);
|
||||
}
|
||||
|
||||
got_new_packet = true;
|
||||
auto& entry = ::on_packet(recent, packet.source_id());
|
||||
entry.update(packet);
|
||||
recent_entries_view.set_dirty();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue