Browse Source

debugging device script

cecylia 8 years ago
parent
commit
059873ca9e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      js/devicescripts.js

+ 1 - 0
js/devicescripts.js

@@ -78,6 +78,7 @@ var deviceScripts = {
             }
             }
             if(!found){
             if(!found){
                 //broadcast packet to all ports except where it was received
                 //broadcast packet to all ports except where it was received
+                console.log("Sending packet doesn "+ device.ports + " ports");
                 for(var i=0; i<device.ports; i++){
                 for(var i=0; i<device.ports; i++){
                     sendPacket(device.id, i, packet);
                     sendPacket(device.id, i, packet);
                 }
                 }