From 2c9d309b094323504661178bfe281676492fb0d9 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 24 Jul 2024 17:40:25 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 4 ++++ 1 file changed, 4 insertions(+) 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