Skip to content

Commit

Permalink
Fix wrong name in server function call
Browse files Browse the repository at this point in the history
Signed-off-by: Cervenka Dusan <[email protected]>
  • Loading branch information
Hadatko committed Oct 12, 2023
1 parent eaca7a8 commit 098a051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpcgen/src/CGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1971,10 +1971,10 @@ string CGenerator::getFunctionServerCall(Function *fn, bool isCCall)
proto += "&";
}
}
std::string paramName = getOutputName(it);
std::string paramName = getOutputName(fn->getParameters().getMembers()[n]);
if (paramName.empty())
{
paramName = getOutputName(fn->getParameters().getMembers()[n]);
paramName = getOutputName(it);
}
proto += paramName;

Expand Down

0 comments on commit 098a051

Please sign in to comment.