From 3dc0b1619c53d2b78863fd6cba287e0fe3e6f003 Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Wed, 15 Sep 2021 21:37:38 +0100 Subject: [PATCH] Update IO_DFPlayer.h --- IO_DFPlayer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IO_DFPlayer.h b/IO_DFPlayer.h index bb0e5c7..4072cae 100644 --- a/IO_DFPlayer.h +++ b/IO_DFPlayer.h @@ -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