-
Notifications
You must be signed in to change notification settings - Fork 30
Fix: Invalid messages with too many plots #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This saves some memory since concatenating Strings means copying. Also see Issue devinaconley#20
This is also to save some memory. See Issue devinaconley#20
devinaconley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks.
Just a style comment, can you add spaces into method calls?
|
I'm not quite sure what you mean by that - do you mean separating the print-statements into several lines? |
plotter/Plotter.cpp
Outdated
| bool config = counter == 0; | ||
|
|
||
| Serial.print( "{\"" + TIME_KEY + "\":" ); Serial.print( millis() ); | ||
| Serial.print( "{\""); Serial.print(TIME_KEY); Serial.print("\":" ); Serial.print( millis() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Chritzel - for example this line would be:
Serial.print( "{\"" ); Serial.print( TIME_KEY ); Serial.print( "\":" ); Serial.print( millis() );
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, added it.
As discussed in PR devinaconley#21
|
Don't know if you saw this, I added two commits fixing the style :) |
devinaconley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 looks good
This is the PR to Issue #20