From ac27a0991ce6c5a4fe97680ad08cd5a97b8b2259 Mon Sep 17 00:00:00 2001 From: couriersud Date: Fri, 9 Jan 2015 03:03:44 +0100 Subject: [PATCH] Fix bug in work_osd.c causing discrete sound to crash. [Tafoid, Haze, Couriersud] --- src/osd/modules/sync/work_osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/modules/sync/work_osd.c b/src/osd/modules/sync/work_osd.c index 992ee1509e3..52b0c15bf9e 100644 --- a/src/osd/modules/sync/work_osd.c +++ b/src/osd/modules/sync/work_osd.c @@ -76,7 +76,7 @@ static void spin_while(const volatile _PtrType * volatile ptr, const _PtrType va int spin = 10000; while (--spin) { - if ((*ptr == val) ^ invert) + if ((*ptr != val) ^ invert) return; } } while (((*ptr == val) ^ invert) && osd_ticks() < stopspin);