13
0

fix semantics of LTC_Slave::locked() - we must have detected FPS to be considered locked

This commit is contained in:
Paul Davis 2019-03-03 10:19:45 -07:00
parent d2d349a30b
commit 5146d93853

View File

@ -162,7 +162,8 @@ LTC_TransportMaster::resolution () const
bool
LTC_TransportMaster::locked () const
{
return (delayedlocked < 5);
DEBUG_TRACE (DEBUG::Slave, string_compose ("locked: fps ? %1 dlocked %2\n", fps_detected, delayedlocked));
return fps_detected && (delayedlocked < 5);
}
bool