i did spot a flaw in my example code.

i did spot a flaw in my example code. do you see it also? 🤦🏽‍♂️
5 Replies
Toph
Toph2y ago
hmmm.... thought something was off with the index but ran through it in my head & it seemed fine ah... overflow 😉 it should be fine on an UNO 😉
MaderDash
MaderDashOP2y ago
yeh, I forget users use esp's and other boards that have way larger values. 😄
Toph
Toph2y ago
but you did code it for 10 samples only so it is fine as written 😄
MaderDash
MaderDashOP2y ago
would it be a double double ? or what would you recomend?
Toph
Toph2y ago
I'd imagine uint16_t wouldn't hurt unless they have hundreds of samples

Did you find this page helpful?