From b695843cc549e3de4845e340c611efb0ae98866c Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 28 May 2009 18:34:05 +0000 Subject: Fix OPL detect. Subversion-branch: /branches/opl-branch Subversion-revision: 1536 --- opl/examples/droplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opl/examples') 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) -- cgit v1.2.3