Skip to content

Commit

Permalink
Merge pull request #3007 from randaz81/multipleanalog_debug
Browse files Browse the repository at this point in the history
Added debug messages to MultipleAnalogSensorsServer/Client
  • Loading branch information
randaz81 authored Sep 4, 2023
2 parents 79fdd4a + eb1861a commit 7c711d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ bool MultipleAnalogSensorsClient::open(yarp::os::Searchable& config)

}

yCDebug(MULTIPLEANALOGSENSORSCLIENT,"Open complete");
return true;
}

Expand All @@ -154,6 +155,7 @@ bool MultipleAnalogSensorsClient::close()
m_streamingPort.close();
m_rpcPort.close();

yCDebug(MULTIPLEANALOGSENSORSCLIENT, "Close complete");
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ bool MultipleAnalogSensorsServer::open(yarp::os::Searchable& config)
m_isDeviceOwned = true;
}

yCDebug(MULTIPLEANALOGSENSORSSERVER, "Open complete");
return true;
}

Expand All @@ -195,6 +196,7 @@ bool MultipleAnalogSensorsServer::close()
m_isDeviceOwned = false;
}

yCDebug(MULTIPLEANALOGSENSORSSERVER, "Close complete");
return ok;
}

Expand Down Expand Up @@ -448,6 +450,7 @@ bool MultipleAnalogSensorsServer::attachAll(const yarp::dev::PolyDriverList& p)

if(!ok)
{
yCError(MULTIPLEANALOGSENSORSSERVER, "Failure in populateAllSensorsMetadata()");
close();
return false;
}
Expand Down Expand Up @@ -487,6 +490,7 @@ bool MultipleAnalogSensorsServer::attachAll(const yarp::dev::PolyDriverList& p)
return false;
}

yCDebug(MULTIPLEANALOGSENSORSSERVER, "Attach complete");
return true;
}

Expand All @@ -501,6 +505,7 @@ bool MultipleAnalogSensorsServer::detachAll()
m_rpcPort.close();
m_streamingPort.close();

yCDebug(MULTIPLEANALOGSENSORSSERVER, "Detach complete");
return true;
}

Expand Down

0 comments on commit 7c711d7

Please sign in to comment.