Skip to content

Commit

Permalink
Update debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Nov 2, 2024
1 parent bc15f18 commit a7ef879
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Source/Probes/CustomPassiveProbe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ CustomPassiveProbe::CustomPassiveProbe (Basestation* bs, Headstage* hs, Flex* fl

bool CustomPassiveProbe::open()
{
LOGC ("Opening probe...");

errorCode = checkError (Neuropixels::openProbe (basestation->slot,
headstage->port,
dock),
"openProbe");

LOGC ("openProbe: slot: ", basestation->slot, " port: ", headstage->port, " dock: ", dock, " errorCode: ", errorCode);
LOGD ("openProbe: slot: ", basestation->slot, " port: ", headstage->port, " dock: ", dock, " errorCode: ", errorCode);

ap_timestamp = 0;
lfp_timestamp = 0;
Expand Down
3 changes: 1 addition & 2 deletions Source/Probes/Neuropixels1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ Neuropixels1::Neuropixels1 (Basestation* bs, Headstage* hs, Flex* fl) : Probe (b

bool Neuropixels1::open()
{
LOGC ("Opening probe...");
errorCode = Neuropixels::openProbe (basestation->slot, headstage->port, dock);

LOGC ("openProbe: slot: ", basestation->slot, " port: ", headstage->port, " dock: ", dock, " errorCode: ", errorCode);
LOGD ("openProbe: slot: ", basestation->slot, " port: ", headstage->port, " dock: ", dock, " errorCode: ", errorCode);

ap_timestamp = 0;
lfp_timestamp = 0;
Expand Down
1 change: 0 additions & 1 deletion Source/Probes/Neuropixels_NHP_Active.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ Neuropixels_NHP_Active::Neuropixels_NHP_Active (Basestation* bs, Headstage* hs,

bool Neuropixels_NHP_Active::open()
{
LOGC ("Opening probe...");
errorCode = Neuropixels::openProbe (basestation->slot, headstage->port, dock);
LOGD ("openProbe: slot: ", basestation->slot, " port: ", headstage->port, " dock: ", dock, " errorCode: ", errorCode);

Expand Down
2 changes: 1 addition & 1 deletion Source/Probes/Neuropixels_QuadBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Neuropixels_QuadBase::Neuropixels_QuadBase (Basestation* bs, Headstage* hs, Flex
bool Neuropixels_QuadBase::open()
{
errorCode = Neuropixels::openProbe (basestation->slot, headstage->port, dock);
LOGC ("openProbe: slot: ", basestation->slot, " port: ", headstage->port, " dock: ", dock, " errorCode: ", errorCode);
LOGD ("openProbe: slot: ", basestation->slot, " port: ", headstage->port, " dock: ", dock, " errorCode: ", errorCode);

ap_timestamp = 0;
lfp_timestamp = 0;
Expand Down
3 changes: 1 addition & 2 deletions Source/Probes/Neuropixels_UHD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,9 @@ Neuropixels_UHD::Neuropixels_UHD (Basestation* bs, Headstage* hs, Flex* fl) : Pr

bool Neuropixels_UHD::open()
{
LOGC ("Opening probe...");
errorCode = Neuropixels::openProbe (basestation->slot, headstage->port, dock);

LOGC ("openProbe: slot: ", basestation->slot, " port: ", headstage->port, " dock: ", dock, " errorCode: ", errorCode);
LOGD ("openProbe: slot: ", basestation->slot, " port: ", headstage->port, " dock: ", dock, " errorCode: ", errorCode);

ap_timestamp = 0;
lfp_timestamp = 0;
Expand Down

0 comments on commit a7ef879

Please sign in to comment.