1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-01-11 21:31:02 +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: case 0:
if (value > 0) { if (value > 0) {
// Play global track // Play global track
if (value > 2999) value = 2999; if (value > 2999) return;
#ifdef DIAG_IO #ifdef DIAG_IO
DIAG(F("DFPlayer: Play %d"), value); DIAG(F("DFPlayer: Play %d"), value);
#endif #endif
sendPacket(0x03, value); sendPacket(0x03, value);
_playing = true; _playing = true;
} else { } else if (value == 0){
#ifdef DIAG_IO #ifdef DIAG_IO
DIAG(F("DFPlayer: Stop")); DIAG(F("DFPlayer: Stop"));
#endif #endif