Watchdog (for advanced users)

sorry for asking two times the same, but i have no experience with the MusicShield.
what is the maximum value to the MusicShield.positionRead.
I think it could be a dead lock if the ending of

while (MusicShield.positionRead < beatStart + _beatSpacing)

is maybe not reachable

1 Like

Max value of the position would just depend on how many bytes of data are in the file being played. If I were to leave it in that _beatPattern then I guess it could get stuck there, but I turn that back to zero long before the end of the file. I guess I could add extra safety there, but I’m certain that wasn’t what was crashing the program in the middle of playback.