mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-06 08:46:11 +08:00
Panda: use 'std::atomic<bool> connected' to ensure thread-safety (#19954)
old-commit-hash: 0b75a85adc
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