Update pong_bot.py

This commit is contained in:
SpudGunMan
2024-07-24 19:13:07 -07:00
parent 392924e06a
commit 8ffd5ba792
+2 -1
View File
@@ -57,9 +57,10 @@ def onReceive(packet, interface):
rxInterface = interface.__dict__.get('devPath')
if rxInterface == port1:
rxNode = 1
elif rxInterface == port2:
rxNode = 2
else:
rxNode = 0
print(f"{log_timestamp()} System: Error, received packet on unknown interface: {rxInterface}")
# receive a packet and process it, main instruction loop