From 43c48bc39b497b5c54ad965c961c5e4d2cb6eef7 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 25 Jul 2023 00:25:24 -0700 Subject: [PATCH] can also do this, but i don't like modifying the response --- selfdrive/navd/navd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/navd/navd.py b/selfdrive/navd/navd.py index 543b2aae82..6633b505f3 100755 --- a/selfdrive/navd/navd.py +++ b/selfdrive/navd/navd.py @@ -169,6 +169,9 @@ class RouteEngine: r = resp.json() if len(r['routes']): self.route = r['routes'][0]['legs'][0]['steps'] + if len(self.route) > 1 and not len(self.route[-1]['bannerInstructions']): + self.route[-1]['bannerInstructions'] = self.route[-2]['bannerInstructions'] + self.route_geometry = [] maxspeed_idx = 0