diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index c3bb8d9df1..02761f9933 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -105,6 +105,7 @@ void MapWindow::updateState(const UIState &s) { return; } const SubMaster &sm = *(s.sm); + update(); if (sm.updated("liveLocationKalman")) { auto location = sm["liveLocationKalman"].getLiveLocationKalman(); @@ -200,8 +201,6 @@ void MapWindow::updateState(const UIState &s) { route_rcv_frame = sm.rcv_frame("navRoute"); } - - update(); } void MapWindow::resizeGL(int w, int h) { diff --git a/selfdrive/ui/qt/maps/map.h b/selfdrive/ui/qt/maps/map.h index f301ffe445..d68bb061a8 100644 --- a/selfdrive/ui/qt/maps/map.h +++ b/selfdrive/ui/qt/maps/map.h @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include @@ -92,7 +91,6 @@ private: void pinchTriggered(QPinchGesture *gesture); bool m_sourceAdded = false; -// QTimer* timer; bool loaded_once = false; bool allow_open = true;