From 87f54b974588b29a790104f760ed1c1fccc3d3fa Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Sun, 4 Jan 2015 12:03:21 +0100 Subject: Alpine CD changer emulation: Fix logic error in detecting non-playing status cppcheck reported: apps/plugins/alpine_cdc.c:721]: (warning) Logical disjunction always evaluates to true: EXPR != 4 || EXPR != 3. Change-Id: Ib811defeac18832227aebe96f0524670c2afa76a --- apps/plugins/alpine_cdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugins/alpine_cdc.c b/apps/plugins/alpine_cdc.c index 28bb8d8b7f..93d9418f65 100644 --- a/apps/plugins/alpine_cdc.c +++ b/apps/plugins/alpine_cdc.c @@ -718,7 +718,7 @@ void emu_process_packet(unsigned char* mbus_msg, int msg_size) { /* seek to final position */ set_position(gEmu.time); } - else if (gEmu.set_state != EMU_PLAYING || gEmu.set_state != EMU_PAUSED) + else if (gEmu.set_state != EMU_PLAYING && gEmu.set_state != EMU_PAUSED) { /* was not playing yet, better send disk message */ diskmsg_dirty = true; } -- cgit v1.2.3