ecu addrs: add warning when skipping remote frame (#27959)

add warning
This commit is contained in:
Shane Smiskol
2023-04-18 15:19:23 -07:00
committed by GitHub
parent 3924c14b74
commit f94528d65d
+1
View File
@@ -56,6 +56,7 @@ def get_ecu_addrs(logcan: messaging.SubSocket, sendcan: messaging.PubSocket, que
for packet in can_packets:
for msg in packet.can:
if not len(msg.dat):
cloudlog.warning("ECU addr scan: skipping empty remote frame")
continue
subaddr = None if (msg.address, None, msg.src) in responses else msg.dat[0]