Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@FedericoBusero
Copy link
Contributor

@FedericoBusero FedericoBusero commented Sep 6, 2018

I found that the logging functions in the library were only compatible with some chipsets, not all. The problem is that on AVR chips (such as the popular Arduino Uno, Arduino Nano, ...) the function Serial.printf hasn't been implemented. This is because of the very limited RAM of those chips.

So, I made a new function to do the logging, as it's always nearly the same. In the function only print and println are being used. I have put an ifdef for Particle. In fact you could probably delete your printf code and use the Arduino code (if the F() macro is available), but this is maybe not so efficient regarding network traffic.

Copy link
Owner

@rwpalmer rwpalmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This getTrackCount code was previously imported then modified so the code portion moved to the cpp ... like the other methods.

@rwpalmer rwpalmer merged commit 985781f into rwpalmer:master Sep 7, 2018
@FedericoBusero
Copy link
Contributor Author

@rwpalmer
Copy link
Owner

rwpalmer commented Sep 8, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants