commit b695843cc549e3de4845e340c611efb0ae98866c
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Thu May 28 18:34:05 2009 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Thu May 28 18:34:05 2009 +0000
Fix OPL detect.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1536
---
opl/examples/droplay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)