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:
Adelin Dobre
2018-07-31 14:29:52 +03:00
committed by Mihai Tudor Panu
parent cb27acbc04
commit a8cd0f72ec
9 changed files with 39 additions and 39 deletions

View File

@ -96,7 +96,7 @@ BH1750::BH1750(std::string initStr) : mraaIo(initStr)
powerDown();
}
if(tok.substr(0, 12) == "sendCommand:") {
uint8_t mode = (uint8_t)std::stoi(tok.substr(12), nullptr, 0);
uint8_t mode = (uint8_t)std::stoul(tok.substr(12), nullptr, 0);
sendCommand(mode);
}
}