Skip to content

Commit 93c28ea

Browse files
committed
Fix register_write service's pair separator
1 parent c0bf4dd commit 93c28ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AlfClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class RegisterWriteRpc : DimRpcInfoWrapper
6868

6969
void writeRegister(uint64_t registerAddress, uint32_t registerValue)
7070
{
71-
setString((boost::format("0x%x%s0x%x") % registerAddress % argumentSeparator() % registerValue).str());
71+
setString((boost::format("0x%x%s0x%x%s") % registerAddress % pairSeparator() % registerValue).str());
7272
try {
7373
getString();
7474
} catch (const AlfException& e) {

src/AlfServer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ std::string AlfServer::registerRead(const std::string& parameter, std::shared_pt
4444

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

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

0 commit comments

Comments
 (0)