summaryrefslogtreecommitdiff
path: root/opl/examples
diff options
context:
space:
mode:
Diffstat (limited to 'opl/examples')
-rw-r--r--opl/examples/droplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opl/examples/droplay.c b/opl/examples/droplay.c
index 7cd595e9..af1a59d9 100644
--- a/opl/examples/droplay.c
+++ b/opl/examples/droplay.c
@@ -78,7 +78,7 @@ int DetectOPL(void)
WriteReg(OPL_REG_TIMER_CTRL, 0x60);
WriteReg(OPL_REG_TIMER_CTRL, 0x80);
- return val1 != 0 || val2 != 0xc0;
+ return val1 == 0 && val2 == 0xc0;
}
void Init(void)