From f2184b65687f2c37ba1d9713c79a3801b7d3ce87 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 25 Jul 2023 00:35:20 -0700 Subject: [PATCH] flip this order --- selfdrive/navd/navd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/navd/navd.py b/selfdrive/navd/navd.py index 9273241f07..029a78da6c 100755 --- a/selfdrive/navd/navd.py +++ b/selfdrive/navd/navd.py @@ -221,7 +221,7 @@ class RouteEngine: # Banner instructions are for the following step, don't use empty last step banner_step = step - if not len(banner_step['bannerInstructions']) and len(self.route) - 1 == self.step_idx: + if not len(banner_step['bannerInstructions']) and self.step_idx == len(self.route) - 1: banner_step = self.route[max(self.step_idx - 1, 0)] # Current instruction