Skip to content

Commit 1be3a48

Browse files
committed
Remove sync warning for hardware-synced streams
1 parent 39307fd commit 1be3a48

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Source/Processors/RecordNode/RecordNode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,8 @@ bool RecordNode::isSynchronized()
717717
{
718718
SyncStatus status = synchronizer.getStatus (stream->getKey());
719719

720+
LOGD (stream->getKey(), " sync status: ", status);
721+
720722
if (status != SYNCED && status != HARDWARE_SYNCED && status != HARP_CLOCK)
721723
return false;
722724
}

Source/Processors/Synchronizer/Synchronizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,13 +954,13 @@ bool Synchronizer::isHarpStream (String streamKey)
954954

955955
SyncStatus Synchronizer::getStatus (String streamKey)
956956
{
957+
958+
if (streamGeneratesTimestamps (streamKey))
959+
return SyncStatus::HARDWARE_SYNCED;
957960

958961
if (streams.count (streamKey) == 0 || ! streamKey.length() || ! acquisitionIsActive)
959962
return SyncStatus::OFF;
960963

961-
if (streamGeneratesTimestamps (streamKey))
962-
return SyncStatus::HARDWARE_SYNCED;
963-
964964
if (streams[streamKey]->isHarpStream)
965965
{
966966
if (isStreamSynced (streamKey))

0 commit comments

Comments
 (0)