From 46da9d741e4c5a55a526f41dff1158221b02a490 Mon Sep 17 00:00:00 2001 From: Robbert Klarenbeek Date: Thu, 13 Apr 2017 15:06:12 +0200 Subject: [PATCH] Resolve compiler warnings --- plotter/Plotter.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plotter/Plotter.cpp b/plotter/Plotter.cpp index b954b27..74f26a5 100644 --- a/plotter/Plotter.cpp +++ b/plotter/Plotter.cpp @@ -199,12 +199,12 @@ void Plotter::Plot() // Graph Plotter::Graph::Graph( String title, VariableWrapper * wrappers, int size, bool xvy, int pointsDisplayed ) : - title( title ), - wrappers( wrappers ), + next( NULL ), size( size ), xvy( xvy ), pointsDisplayed( pointsDisplayed ), - next( NULL ) + title( title ), + wrappers( wrappers ) {} Plotter::Graph::~Graph() @@ -244,7 +244,6 @@ void Plotter::Graph::Plot( bool config ) } Serial.print( "\"" + DATA_KEY + "\":[" ); - char val[15]; for (int i = 0; i < size; i++) { Serial.print( wrappers[i].GetValue(), 8 ); @@ -287,9 +286,9 @@ Plotter::VariableWrapper::VariableWrapper() : Plotter::VariableWrapper::VariableWrapper( String label, void * ref, double ( * deref )( void * ), String color ) : label( label ), + color( color ), ref( ref ), - deref( deref ), - color( color ) + deref( deref ) {} String Plotter::VariableWrapper::GetLabel()