Fix incorrect operation direction of age check-up.
Change-Id: Ia76f9cdda639c0417da1002906e63a02f97d1b67
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
detector.Attach(actor);
detector.DetectedSignal().Connect(&application, functor);
- detector.SetMaximumMotionEventAge(minTime / 2);
+ detector.SetMaximumMotionEventAge(minTime * 2);
- DALI_TEST_EQUALS(minTime / 2, detector.GetMaximumMotionEventAge(), TEST_LOCATION);
+ DALI_TEST_EQUALS(minTime * 2, detector.GetMaximumMotionEventAge(), TEST_LOCATION);
END_TEST;
}
}
uint32_t maximumAge = detector->GetMaximumMotionEventAge();
- if(maximumAge > maximumMotionEventAge)
+ if(maximumAge < maximumMotionEventAge)
{
maximumMotionEventAge = maximumAge;
}