mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
Panda: use 'std::atomic<bool> connected' to ensure thread-safety (#19954)
This commit is contained in:
@@ -52,7 +52,7 @@ class Panda {
|
||||
Panda();
|
||||
~Panda();
|
||||
|
||||
bool connected = true;
|
||||
std::atomic<bool> connected = true;
|
||||
cereal::HealthData::HwType hw_type = cereal::HealthData::HwType::UNKNOWN;
|
||||
bool is_pigeon = false;
|
||||
bool has_rtc = false;
|
||||
|
||||
Reference in New Issue
Block a user