fix thread safety issue in camera focusing (#19576)

pull/19642/head
Dean Lee 4 years ago committed by GitHub
parent 37826c0032
commit 06e3b1e445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/camerad/cameras/camera_qcom.h

@ -98,7 +98,7 @@ typedef struct CameraState {
int16_t focus[NUM_FOCUS];
uint8_t confidence[NUM_FOCUS];
float focus_err;
std::atomic<float> focus_err;
uint16_t cur_step_pos;
uint16_t cur_lens_pos;

Loading…
Cancel
Save