Skip to content

Commit

Permalink
RecordNode main_sync -> SelectedStreamParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed Oct 5, 2023
1 parent c6b4900 commit 8079085
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Source/Processors/RecordNode/RecordNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ void RecordNode::registerParameters()
addSelectedChannelsParameter(Parameter::STREAM_SCOPE, "sync_line", "Sync Line", "Event line to use for sync signal", 1, true);
dataStreamParameters.getLast()->disableUpdateOnSelectedStreamChanged();

//addIntParameter(Parameter::PROCESSOR_SCOPE, "main_sync", "Main Sync Stream ID", "Use this stream as main sync", 10000, 10000, 99999,true);
addCategoricalParameter(Parameter::PROCESSOR_SCOPE, "main_sync", "Main Sync Stream ID", "Use this stream as main sync", {}, 0, true);
addSelectedStreamParameter(Parameter::PROCESSOR_SCOPE, "main_sync", "Main Sync Stream ID", "Use this stream as main sync", {}, 0, true);
}

void RecordNode::parameterValueChanged(Parameter* p)
Expand Down Expand Up @@ -481,10 +480,6 @@ void RecordNode::updateSettings()

}

/* Update main sync parameter categories */
CategoricalParameter* mainSyncParam = (CategoricalParameter*)getParameter("main_sync");
mainSyncParam->setCategories(streamNames);

synchronizer.finishedUpdate();


Expand Down

0 comments on commit 8079085

Please sign in to comment.