mirror of
https://github.com/DFRobot/DFRobotDFPlayerMini.git
synced 2026-03-02 23:04:01 +01:00
Update DFRobotDFPlayerMini.cpp
Fixed erroneous message for USB track Play Finished. (0x3C)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user