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
This commit is contained in:
parent
e0d7c7c632
commit
87f54b9745
1 changed files with 1 additions and 1 deletions
|
@ -718,7 +718,7 @@ void emu_process_packet(unsigned char* mbus_msg, int msg_size)
|
||||||
{ /* seek to final position */
|
{ /* seek to final position */
|
||||||
set_position(gEmu.time);
|
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 */
|
{ /* was not playing yet, better send disk message */
|
||||||
diskmsg_dirty = true;
|
diskmsg_dirty = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue