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