DFRobot / DFRobot_DF1201S

Here comes the DFPlayer Pro-a mini simple but powerful MP3 Player! This MP3 player module supports four controlling modes: Arduino, AT command, on-board buttons, and ADKEY. You can directly press the on-board button to play or switch music without using a controller. By using a USB cable, you can easily copy your favorite songs into this module to play them any where you want, or use it as a sound card for your PC or Raspberry Pi after connecting them together.
MIT License
6 stars 5 forks source link

resolution getCurTime() and getTotalTime() #8

Closed tmjnijssen closed 1 year ago

tmjnijssen commented 1 year ago

The resolution of getCurTime() getTotalTime() appears to be just 8 bit, despite being presented as 16 bit. Eg, getTotalTime on a 10:44 long file returns 134. (10:44 = 644s , 644 % 255 = 134).

tmjnijssen commented 1 year ago

problem is the return type of getINT() being uint8_t

tmjnijssen commented 1 year ago

fixed by https://github.com/DFRobot/DFRobot_DF1201S/pull/9

qsjhyy commented 8 months ago

Thank you. You're right!