diff --git a/pong_bot.py b/pong_bot.py index 9a8292b..12507d5 100755 --- a/pong_bot.py +++ b/pong_bot.py @@ -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