dmonitoring_init: use &s->output[0] instead of &s->output (#19918)

pull/19898/head^2
Dean Lee 4 years ago committed by GitHub
parent b0c0de5b66
commit 4bfed95071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/modeld/models/dmonitoring.cc

@ -24,7 +24,7 @@ void dmonitoring_init(DMonitoringModelState* s) {
#endif
int runtime = USE_DSP_RUNTIME;
s->m = new DefaultRunModel(model_path, (float*)&s->output, OUTPUT_SIZE, runtime);
s->m = new DefaultRunModel(model_path, &s->output[0], OUTPUT_SIZE, runtime);
s->is_rhd = Params().read_db_bool("IsRHD");
}

Loading…
Cancel
Save