mirror of
https://github.com/eclipse/upm.git
synced 2025-07-26 21:51:16 +03:00
Add changes getting values for upm parameters
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
cb27acbc04
commit
a8cd0f72ec
@ -170,9 +170,9 @@ BMP280::BMP280(std::string initStr) : mraaIo(initStr)
|
||||
setSeaLevelPreassure(seaLevelhPA);
|
||||
}
|
||||
if(tok.substr(0, 9) == "writeReg:") {
|
||||
uint8_t reg = std::stoi(tok.substr(9), &sz, 0);
|
||||
uint8_t reg = std::stoul(tok.substr(9), &sz, 0);
|
||||
tok = tok.substr(9);
|
||||
uint8_t val = std::stoi(tok.substr(sz+1), nullptr, 0);
|
||||
uint8_t val = std::stoul(tok.substr(sz+1), nullptr, 0);
|
||||
writeReg(reg, val);
|
||||
}
|
||||
if(tok.substr(0, 10) == "setFilter:") {
|
||||
|
Reference in New Issue
Block a user