Skip to content

Commit e6b742d

Browse files
authored
Merge pull request #16 from robbertkl/patch-1
Resolve compiler warnings
2 parents 0d1f59e + 46da9d7 commit e6b742d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

plotter/Plotter.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ void Plotter::Plot()
199199
// Graph
200200

201201
Plotter::Graph::Graph( String title, VariableWrapper * wrappers, int size, bool xvy, int pointsDisplayed ) :
202-
title( title ),
203-
wrappers( wrappers ),
202+
next( NULL ),
204203
size( size ),
205204
xvy( xvy ),
206205
pointsDisplayed( pointsDisplayed ),
207-
next( NULL )
206+
title( title ),
207+
wrappers( wrappers )
208208
{}
209209

210210
Plotter::Graph::~Graph()
@@ -244,7 +244,6 @@ void Plotter::Graph::Plot( bool config )
244244
}
245245

246246
Serial.print( "\"" + DATA_KEY + "\":[" );
247-
char val[15];
248247
for (int i = 0; i < size; i++)
249248
{
250249
Serial.print( wrappers[i].GetValue(), 8 );
@@ -287,9 +286,9 @@ Plotter::VariableWrapper::VariableWrapper() :
287286

288287
Plotter::VariableWrapper::VariableWrapper( String label, void * ref, double ( * deref )( void * ), String color ) :
289288
label( label ),
289+
color( color ),
290290
ref( ref ),
291-
deref( deref ),
292-
color( color )
291+
deref( deref )
293292
{}
294293

295294
String Plotter::VariableWrapper::GetLabel()

0 commit comments

Comments
 (0)