Browse Source

debugging switch script

cecylia 8 years ago
parent
commit
3ce4d07955
1 changed files with 3 additions and 1 deletions
  1. 3 1
      js/devicescripts.js

+ 3 - 1
js/devicescripts.js

@@ -79,7 +79,9 @@ var deviceScripts = {
             if(!found){
                 //broadcast packet to all ports except where it was received
                 for(var i=0; i<device.ports.length; i++){
-                    sendPacket(device.id, i, packet);
+                    if(i != portNum){
+                        sendPacket(device.id, i, packet);
+                    }
                 }
             }
             //update rules with info from this packet