mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-24 18:42:07 +08:00
boardd: pass std::vector pandas by reference (#22741)
old-commit-hash: 7486a42935
This commit is contained in:
@@ -68,7 +68,7 @@ std::string get_time_str(const struct tm &time) {
|
||||
return s;
|
||||
}
|
||||
|
||||
bool check_all_connected(std::vector<Panda *> pandas) {
|
||||
bool check_all_connected(const std::vector<Panda *> &pandas) {
|
||||
for (const auto& panda : pandas) {
|
||||
if (!panda->connected) return false;
|
||||
}
|
||||
@@ -293,7 +293,7 @@ void send_empty_panda_state(PubMaster *pm) {
|
||||
pm->send("pandaStates", msg);
|
||||
}
|
||||
|
||||
bool send_panda_states(PubMaster *pm, std::vector<Panda *> pandas, bool spoofing_started) {
|
||||
bool send_panda_states(PubMaster *pm, const std::vector<Panda *> &pandas, bool spoofing_started) {
|
||||
bool ignition_local = false;
|
||||
|
||||
// build msg
|
||||
|
||||
Reference in New Issue
Block a user