| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -349,6 +349,16 @@ public String readString() { | |||
| 349 | 349 | } | |
| 350 | 350 | ||
| 351 | 351 | ||
| 352 | + public String readStringUntil(int inByte) { | ||
| 353 | + byte temp[] = readBytesUntil(inByte); | ||
| 354 | + if (temp == null) { | ||
| 355 | + return null; | ||
| 356 | + } else { | ||
| 357 | + return new String(temp); | ||
| 358 | + } | ||
| 359 | + } | ||
| 360 | + | ||
| 361 | + | ||
| 352 | 362 | public void serialEvent(SerialPortEvent event) { | |
| 353 | 363 | if (event.getEventType() == SerialPortEvent.RXCHAR) { | |
| 354 | 364 | int toRead; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments