sometimes never goes into the loop

pull/2569/head
Harald Schafer 5 years ago
parent bbd1b758ff
commit d409dabedd
  1. 2
      selfdrive/ui/paint.cc

@ -149,7 +149,7 @@ static void ui_draw_line(UIState *s, const vertex_data *v, const int cnt, NVGcol
static void update_track_data(UIState *s, const cereal::ModelDataV2::XYZTData::Reader &line, track_vertices_data *pvd) {
const UIScene *scene = &s->scene;
const float off = 0.5;
int max_idx;
int max_idx = 0;
float lead_d;
if(s->sm->updated("radarState")) {
lead_d = scene->lead_data[0].getDRel()*2.;

Loading…
Cancel
Save