From 86ea3498942aed7b68e1551945cc60401d2145de Mon Sep 17 00:00:00 2001 From: SylvsGit <40580746+SylvsGit@users.noreply.github.com> Date: Mon, 18 Feb 2019 13:32:40 +0100 Subject: [PATCH] Update DFRobotDFPlayerMini.cpp Fixed erroneous message for USB track Play Finished. (0x3C) --- DFRobotDFPlayerMini.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DFRobotDFPlayerMini.cpp b/DFRobotDFPlayerMini.cpp index bd60a66..e57d01d 100644 --- a/DFRobotDFPlayerMini.cpp +++ b/DFRobotDFPlayerMini.cpp @@ -158,6 +158,7 @@ void DFRobotDFPlayerMini::parseStack(){ _handleParameter = arrayToUint16(_received + Stack_Parameter); switch (_handleCommand) { + case 0x3C: case 0x3D: handleMessage(DFPlayerPlayFinished, _handleParameter); break; @@ -191,7 +192,6 @@ void DFRobotDFPlayerMini::parseStack(){ case 0x40: handleMessage(DFPlayerError, _handleParameter); break; - case 0x3C: case 0x3E: case 0x42: case 0x43: