Skip to content

Commit e4465c9

Browse files
committed
Fixed a bug where flowcontrol caused the first packet to get lost
1 parent b218cc3 commit e4465c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/auxiliary/server/local_hwbridge.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ def isotp_send_and_wait(bus, srcid, dstid, data, opt = {})
226226
@last_sent = Time.now.to_i
227227
$candump_sniffer.join
228228
unless @pkt_response.empty?
229-
result.merge!(@pkt_response)
229+
if @pkt_response.key?("Packets") && @pkt_response["Packets"].size > 0
230+
result["Packets"] += @pkt_response["Packets"]
231+
end
230232
end
231233
end
232234
end

0 commit comments

Comments
 (0)