Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions plotter/Plotter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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 );
Expand Down Expand Up @@ -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()
Expand Down