From 8ffd5ba7925d890fe3344ee344d8b40ab3d6e3f7 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 24 Jul 2024 19:13:07 -0700 Subject: [PATCH] Update pong_bot.py --- pong_bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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