flip this order

pull/29034/head
Shane Smiskol 2 years ago
parent fc3248b5bc
commit f2184b6568
  1. 2
      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

Loading…
Cancel
Save