-
Notifications
You must be signed in to change notification settings - Fork 33
Description
While debugging a project where i need some files to loop if nothing else happens, I eventually dug into your library code.
The startRepeat() and stopRepeat() functionality didn't seem to work and I thought I misunderstood how the feature works, but the datasheet says that the LSB for the "repeat playback of current track" command should be 0 to turn on and 1 to turn off.
Looking through your library code I found that both startRepeat() and stopRepeat() set the LSB to 0.
Maybe this is a case of difference between DFPlayerMini boards, otherwise it's an easy fix.
For anyone having the same problem: Luckily the methods of the library are all public, so you can copy what stopRepeat() is doing and just set the LSB to 1 and send the command manually. Or you can change it in your local copy of the library.