diff --git a/mesh_bot.py b/mesh_bot.py index 7c53278..292a9a0 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -147,6 +147,10 @@ def onReceive(packet, interface): rxInterface = interface.__dict__.get('devPath') if rxInterface == port1: rxNode = 1 + elif rxInterface == port2: + rxNode = 2 + else: + rxNode = 0 # receive a packet and process it, main instruction loop