log encodeIdx packets in qlog (#20738)

old-commit-hash: 9813c0ddbd
commatwo_master
Adeeb Shihadeh 4 years ago committed by GitHub
parent 4c461b3f7f
commit 467811edf1
  1. 3
      selfdrive/loggerd/loggerd.cc

@ -288,8 +288,9 @@ void encoder_thread(int cam_idx) {
eidx.setSegmentNum(rotate_state.cur_seg); eidx.setSegmentNum(rotate_state.cur_seg);
eidx.setSegmentId(out_id); eidx.setSegmentId(out_id);
if (lh) { if (lh) {
// TODO: this should read cereal/services.h for qlog decimation
auto bytes = msg.toBytes(); auto bytes = msg.toBytes();
lh_log(lh, bytes.begin(), bytes.size(), false); lh_log(lh, bytes.begin(), bytes.size(), true);
} }
} }
} }

Loading…
Cancel
Save