mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-03-03 20:43:56 +08:00
loggerd: Initialize atomic variables to zero (#33130)
Initialize atomic variables in LoggerdState to zero
This commit is contained in:
@@ -15,8 +15,8 @@ ExitHandler do_exit;
|
||||
|
||||
struct LoggerdState {
|
||||
LoggerState logger;
|
||||
std::atomic<double> last_camera_seen_tms;
|
||||
std::atomic<int> ready_to_rotate; // count of encoders ready to rotate
|
||||
std::atomic<double> last_camera_seen_tms{0.0};
|
||||
std::atomic<int> ready_to_rotate{0}; // count of encoders ready to rotate
|
||||
int max_waiting = 0;
|
||||
double last_rotate_tms = 0.; // last rotate time in ms
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user