Skip to content

Commit

Permalink
fix: std::to_string is not suported within RTEMs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerzyjamroz committed Dec 28, 2023
1 parent f27f3c0 commit 19341b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions evrMrmApp/src/drvem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,12 @@ try{
// map TCLKx starting from GTX_FPUV_OFFSET (as in the documentation)
outputs[std::make_pair(OutputFPUniv, i + GTX_FPUV_OFFSET)] = new MRMOutput(SB() << n << ":FrontUnivOut" << i + GTX_FPUV_OFFSET, this, OutputFPUniv, i + GTX_FPUV_OFFSET);
// CMLs for TCLKx
std::ostringstream mrmcml_stm;
mrmcml_stm << n << ":CML" << i;
if(model().compare("mTCA-EVR-300RF") == 0 && i == 4)
shortcmls[i] = new MRMCML(n + ":CML" + std::to_string(i), i, *this, MRMCML::typeTG300, form);
shortcmls[i] = new MRMCML(mrmcml_stm.str(), i, *this, MRMCML::typeTG300, form);
else
shortcmls[i] = new MRMCML(n + ":CML" + std::to_string(i), i, *this, conf->kind, form);
shortcmls[i] = new MRMCML(mrmcml_stm.str(), i, *this, conf->kind, form);
}
} else if(conf->nCML && ver>=MRFVersion(0,4)){
shortcmls.resize(conf->nCML);
Expand Down

0 comments on commit 19341b0

Please sign in to comment.