loggerd: Initialize atomic variables to zero (#33130)

Initialize atomic variables in LoggerdState to zero
pull/33125/head
Dean Lee 11 months ago committed by GitHub
parent 13511e383c
commit 8f3fc699d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      system/loggerd/loggerd.cc

@ -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
};

Loading…
Cancel
Save