Sfoglia il codice sorgente

debugging device script

cecylia 9 anni fa
parent
commit
059873ca9e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      js/devicescripts.js

+ 1 - 0
js/devicescripts.js

@@ -78,6 +78,7 @@ var deviceScripts = {
             }
             if(!found){
                 //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++){
                     sendPacket(device.id, i, packet);
                 }