Fix bug in work_osd.c causing discrete sound to crash. [Tafoid, Haze,

Couriersud]
This commit is contained in:
couriersud 2015-01-09 03:03:44 +01:00
parent 14e96b6f9d
commit ac27a0991c

View File

@ -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);