mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-22 14:32:07 +08:00
fix thread safety issue in camera focusing (#19576)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user