Added missing space in comment, according to Google style guidelines "whitespace/comments"

This commit is contained in:
Stefan Persson 2013-05-16 16:16:53 +02:00
parent d37ff4ff0b
commit ae841861b2

View file

@ -161,7 +161,7 @@ std::string ProtocolHasta::decodeData(const ControllerMessage& dataMsg) {
method = allData & 0xF; method = allData & 0xF;
allData >>= 4; allData >>= 4;
if(TelldusCore::comparei(dataMsg.model(), L"selflearning")) { if(TelldusCore::comparei(dataMsg.model(), L"selflearning")) {
//version1 // version1
house = allData & 0xFFFF; house = allData & 0xFFFF;
house = ((house << 8) | (house >> 8)) & 0xFFFF; house = ((house << 8) | (house >> 8)) & 0xFFFF;
model = "selflearning"; model = "selflearning";
@ -179,14 +179,14 @@ std::string ProtocolHasta::decodeData(const ControllerMessage& dataMsg) {
} }
} }
else{ else{
//version2 // version2
house = allData & 0xFFFF; house = allData & 0xFFFF;
model = "selflearningv2"; model = "selflearningv2";
if(method == 12){ if(method == 12){
methodstring = "up"; methodstring = "up";
} }
else if(method == 1 || method == 8){ //is method 8 correct? else if(method == 1 || method == 8){ // is method 8 correct?
methodstring = "down"; methodstring = "down";
} }
else if(method == 5){ else if(method == 5){