camerad: SubMaster never updated (#20651)

* fix sm has not been updated

* update submaster in processing driver cam thread

* move Subbmaster to driver camera thread

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f0a1a6e4d6256d7ec2319288695c5fece51c8f66
This commit is contained in:
Dean Lee
2021-04-14 06:26:24 +08:00
committed by GitHub
parent 96fce0bda5
commit 2db11515bd
@@ -385,6 +385,7 @@ static void driver_cam_auto_exposure(CameraState *c, SubMaster &sm) {
void common_process_driver_camera(SubMaster *sm, PubMaster *pm, CameraState *c, int cnt) {
if (cnt % 3 == 0) {
sm->update(0);
driver_cam_auto_exposure(c, *sm);
}
MessageBuilder msg;