1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00

Update IO_DFPlayer.h

Reinstate STOP command in place of PAUSE, as PAUSE was being reported differently to STOP in the status response.
This commit is contained in:
Neil McKechnie 2023-03-31 17:58:30 +01:00
parent 6fbaca7930
commit 1b4faa92cd

View File

@ -221,7 +221,7 @@ protected:
sendPacket(0x03, _requestedSong); sendPacket(0x03, _requestedSong);
_requestedSong = -1; _requestedSong = -1;
} else if (_requestedSong == 0) { } else if (_requestedSong == 0) {
sendPacket(0x0e); // Pause playing sendPacket(0x16); // Stop playing
_requestedSong = -1; _requestedSong = -1;
} else if (_currentVolume < _requestedVolumeLevel) { } else if (_currentVolume < _requestedVolumeLevel) {
// Change volume after changing song if volume is increasing. // Change volume after changing song if volume is increasing.