mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-26 16:12:06 +08:00
Clear route cache more gracefully to allow we based route connection to happen quick ish
This commit is contained in:
@@ -59,10 +59,10 @@ class Navigationd:
|
||||
self.reroute_counter = 0
|
||||
|
||||
if self.cancel_route_counter == 30:
|
||||
self.nav_instructions.clear_route_cache()
|
||||
self.params.put('MapboxSettings', {"navData": {"current": {}, "route": {}}})
|
||||
self.route = None
|
||||
self.cancel_route_counter = 0
|
||||
self.destination = None
|
||||
self.nav_instructions.clear_route_cache()
|
||||
self.route = None
|
||||
|
||||
self.valid = self.route is not None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user