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