mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-11 19:32:50 +02:00
Update mesh_bot.py
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user