1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-01-11 13:21:01 +01:00

Update IO_DFPlayer.h

This commit is contained in:
Neil McKechnie 2021-09-15 21:37:38 +01:00
parent 592f87303e
commit 3dc0b1619c

View File

@ -131,13 +131,13 @@ protected:
case 0:
if (value > 0) {
// Play global track
if (value > 2999) value = 2999;
if (value > 2999) return;
#ifdef DIAG_IO
DIAG(F("DFPlayer: Play %d"), value);
#endif
sendPacket(0x03, value);
_playing = true;
} else {
} else if (value == 0){
#ifdef DIAG_IO
DIAG(F("DFPlayer: Stop"));
#endif