add more debugging output to fpga.Server.java
authoradam <adam@megacz.com>
Thu, 21 Aug 2008 10:27:59 +0000 (11:27 +0100)
committeradam <adam@megacz.com>
Thu, 21 Aug 2008 10:27:59 +0000 (11:27 +0100)
src/edu/berkeley/fleet/fpga/Server.java

index fb9049d..4b6e80d 100644 (file)
@@ -9,7 +9,6 @@ import java.util.*;
 public class Server {
     static boolean sign = false;
 
-
     static long jarFileTime = 0;
     static long bitFileTime = 0;
     static {
@@ -73,7 +72,9 @@ public class Server {
         private SerialPort sp;
         public Handler(Socket s) { this.socket = s; this.sp = sp; }
         public void run() {
+            System.err.println("waiting for Server.class lock...");
             synchronized(Server.class) {
+                System.err.println("   (got it)");
                 try {
                     this.sp = new RXTXPort("/dev/ttyS0");
                     sp.setInputBufferSize(0);