Skip to content

Commit

Permalink
Merge pull request #31 from medengineer/apiv3.60
Browse files Browse the repository at this point in the history
Fix sync output configuration order
  • Loading branch information
jsiegle committed Aug 3, 2023
2 parents 7f91dc5 + be32652 commit afef9e5
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Source/Basestations/Basestation_v3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,6 @@ Array<int> Basestation_v3::getSyncFrequencies()

void Basestation_v3::setSyncAsOutput(int freqIndex)
{

LOGD("Setting sync as output...");

errorCode = Neuropixels::switchmatrix_set(slot, Neuropixels::SM_Output_SMA, Neuropixels::SM_Input_SyncClk, true);
if (errorCode != Neuropixels::SUCCESS)
{
LOGC("Failed to set sync on SMA output on slot: ", slot);
}


errorCode = Neuropixels::setParameter(Neuropixels::NP_PARAM_SYNCMASTER, slot);
if (errorCode != Neuropixels::SUCCESS)
Expand All @@ -402,6 +393,14 @@ void Basestation_v3::setSyncAsOutput(int freqIndex)
return;
}

LOGD("Setting sync as output...");

errorCode = Neuropixels::switchmatrix_set(slot, Neuropixels::SM_Output_SMA, Neuropixels::SM_Input_SyncClk, true);
if (errorCode != Neuropixels::SUCCESS)
{
LOGC("Failed to set sync on SMA output on slot: ", slot);
}




Expand Down

0 comments on commit afef9e5

Please sign in to comment.