Skip to content

Commit

Permalink
Fix register_write service's pair separator
Browse files Browse the repository at this point in the history
  • Loading branch information
kostorr committed Sep 9, 2019
1 parent c0bf4dd commit 93c28ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AlfClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class RegisterWriteRpc : DimRpcInfoWrapper

void writeRegister(uint64_t registerAddress, uint32_t registerValue)
{
setString((boost::format("0x%x%s0x%x") % registerAddress % argumentSeparator() % registerValue).str());
setString((boost::format("0x%x%s0x%x%s") % registerAddress % pairSeparator() % registerValue).str());
try {
getString();
} catch (const AlfException& e) {
Expand Down
2 changes: 1 addition & 1 deletion src/AlfServer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ std::string AlfServer::registerRead(const std::string& parameter, std::shared_pt

std::string AlfServer::registerWrite(const std::string& parameter, std::shared_ptr<roc::BarInterface> bar2)
{
std::vector<std::string> params = Util::split(parameter, argumentSeparator());
std::vector<std::string> params = Util::split(parameter, pairSeparator());

if (params.size() != 2) {
BOOST_THROW_EXCEPTION(AlfException() << ErrorInfo::Message("Wrong number of parameters for RPC write call"));
Expand Down

0 comments on commit 93c28ea

Please sign in to comment.