Commit f71fd7b 1 parent e035fa1 commit f71fd7b Copy full SHA for f71fd7b
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ DWORD PandaJ2534Device::kline_recv_thread() {
150
150
continue ;
151
151
}
152
152
153
- for (auto msg : msg_recv) {
153
+ for (auto & msg : msg_recv) {
154
154
for (auto & conn : this ->connections ) {
155
155
if (conn != nullptr && !conn->isProtoCan ()) {
156
156
J2534Frame msg_out (conn->getProtocol (), msg);
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ bool Panda::can_send_many(const std::vector<PANDA_CAN_MSG>& can_msgs) {
323
323
std::vector<PANDA_CAN_MSG_INTERNAL> formatted_msgs;
324
324
formatted_msgs.reserve (can_msgs.size ());
325
325
326
- for (auto msg : can_msgs) {
326
+ for (auto & msg : can_msgs) {
327
327
if (msg.bus == PANDA_CAN_UNK) continue ;
328
328
if (msg.len > 8 ) continue ;
329
329
PANDA_CAN_MSG_INTERNAL tmpmsg = {};
You can’t perform that action at this time.
0 commit comments