Skip to content

Commit 828341a

Browse files
committed
Better logging in listener
1 parent a8cb7f5 commit 828341a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

listener/Graph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ private void CheckExtremes()
350350
return;
351351
}
352352

353-
this.parent.println("Recalculating extremes...");
353+
// this.parent.println("Recalculating extremes...");
354354

355355
// Full re-calculation for new extremes
356356
if ( this.xvy )

listener/listener.pde

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void serialEvent( Serial ser )
184184
xvyTemp, numVars, maxPoints, title, labelsTemp, colorsTemp );
185185
graphs.add( temp );
186186
}
187-
println("Added ", graphs.size() );
187+
println( "Configured " + graphs.size() + " graphs" );
188188

189189
// Set new config code
190190
if ( concatLabels.equals( lastLabels ) ) // Only when we're sure on labels
@@ -281,6 +281,7 @@ float[][] setupGraphPosition( int numGraphs )
281281
void attemptConnect( int index )
282282
{
283283
// Attempt connect on specified serial port
284+
println( "Attempting connect on port index: " + index );
284285
try
285286
{
286287
// Configure
@@ -289,5 +290,7 @@ void attemptConnect( int index )
289290
lastPortSwitch = millis(); // at end so that we try again immediately on invalid port
290291
}
291292
catch ( Exception e )
292-
{}
293+
{
294+
println( e.getMessage() );
295+
}
293296
}

0 commit comments

Comments
 (0)