| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -200,7 +200,7 @@ public void clear() { | |||
| 200 | 200 | ||
| 201 | 201 | public void debug() { | |
| 202 | 202 | float secs = (System.nanoTime()-firstEvent)/1000000000.0f; | |
| 203 | - System.out.println("\nSerial: test #3"); | ||
| 203 | + System.out.println("\nSerial: test #4"); | ||
| 204 | 204 | System.out.println(port.getPortName()+" @ "+baudRate+" bps"); | |
| 205 | 205 | System.out.println(secs+" sec receiving data:"); | |
| 206 | 206 | System.out.println(countEvents+" events, "+(countEvents/secs)+" per sec"); | |
@@ -461,6 +461,7 @@ public void serialEvent(SerialPortEvent event) { | |||
| 461 | 461 | long start = System.nanoTime(); | |
| 462 | 462 | // this method can be called from the context of another thread | |
| 463 | 463 | synchronized (buffer) { | |
| 464 | + toRead = 1; | ||
| 464 | 465 | long len = System.nanoTime()-start; | |
| 465 | 466 | if (maxReadSyncTime < len) { | |
| 466 | 467 | maxReadSyncTime = len; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments