We need that to filter out loopback bus

old-commit-hash: 23363890cd9dbf6ba918c5e5c1efb858c63e63cb
This commit is contained in:
Willem Melching
2020-04-23 12:19:46 -07:00
parent a8adc65dde
commit af5b045a3a

View File

@@ -36,6 +36,7 @@ def send_thread(sender_serial):
while True:
tsc = messaging.recv_one(can_sock)
snd = can_capnp_to_can_list(tsc.can)
snd = list(filter(lambda x: x[-1] <= 2, snd))
try:
sender.can_send_many(snd)