mirror of
https://github.com/eclipse/upm.git
synced 2025-07-26 21:51:16 +03:00
Fix some issues for string based constructors
Signed-off-by: Adelin Dobre <adelin.dobre@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
8f11061de3
commit
2975bae075
@ -123,14 +123,14 @@ CWLSXXA::CWLSXXA(std::string initStr)
|
||||
upmTokens = UpmStringParser::parse(mraaIo->getLeftoverStr());
|
||||
}
|
||||
|
||||
for(std::string tok:upmTokens)
|
||||
for(std::string tok : upmTokens)
|
||||
{
|
||||
if(tok.substr(0,5) == "aref:")
|
||||
if(tok.substr(0, 5) == "aref:")
|
||||
{
|
||||
float aref = std::stof(tok.substr(5));
|
||||
m_aref = aref;
|
||||
}
|
||||
if(tok.substr(0,10) == "rResistor:")
|
||||
if(tok.substr(0, 10) == "rResistor:")
|
||||
{
|
||||
float rResistor = std::stof(tok.substr(10));
|
||||
m_rResistor = rResistor;
|
||||
|
Reference in New Issue
Block a user