Skip to content

Commit d971478

Browse files
committed
Serial monitor timestamp: add the arrow ' -> ' to the timestamp format
This saves another "append" call while streaming.
1 parent 986d67f commit d971478

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/processing/app/AbstractTextMonitor.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public abstract class AbstractTextMonitor extends AbstractMonitor {
4747

4848
public AbstractTextMonitor(BoardPort boardPort) {
4949
super(boardPort);
50-
logDateFormat = new SimpleDateFormat("HH:mm:ss.SSS");
50+
logDateFormat = new SimpleDateFormat("HH:mm:ss.SSS -> ");
5151
}
5252

5353
protected void onCreateWindow(Container mainPane) {
@@ -192,7 +192,6 @@ public void run() {
192192
while (tokenizer.hasMoreTokens()) {
193193
if (isStartingLine) {
194194
out.append(now);
195-
out.append(" -> ");
196195
}
197196
String token = tokenizer.nextToken();
198197
out.append(token);

0 commit comments

Comments
 (0)