Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Syntactical rewrite using C++ templates to avoid heap fragmentation #17
- avoid using free/malloc as it causes heap fragmentation and crashes long term (https://arduino.stackexchange.com/questions/682/is-using-malloc-and-free-a-really-bad-idea-on-arduino/712) when repeatedly calling constructor/destructor (this modif avoids that) - use uint8_t in stead of int (saving memory)
Simsso left a comment
Thanks a lot of opening this PR. The changes you have made do not only extend the functionality but also improve the coding style. That's really greatly appreciated. I'll run a test on hardware now. As far as the feedback is concerned: I've got one question about the variable casing and some smaller fixes that I will make myself.