We need that to filter out loopback bus
This commit is contained in:
parent
95c2ff5a3d
commit
23363890cd
|
@ -36,6 +36,7 @@ def send_thread(sender_serial):
|
||||||
while True:
|
while True:
|
||||||
tsc = messaging.recv_one(can_sock)
|
tsc = messaging.recv_one(can_sock)
|
||||||
snd = can_capnp_to_can_list(tsc.can)
|
snd = can_capnp_to_can_list(tsc.can)
|
||||||
|
snd = list(filter(lambda x: x[-1] <= 2, snd))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sender.can_send_many(snd)
|
sender.can_send_many(snd)
|
||||||
|
|
Loading…
Reference in a new issue