Moved "else" to same line as previous closing braces, according to Google style guidelines "whitespace/newline"
This commit is contained in:
parent
14399b2d7f
commit
107d7669e7
1 changed files with 7 additions and 14 deletions
|
@ -167,32 +167,25 @@ std::string ProtocolHasta::decodeData(const ControllerMessage& dataMsg) {
|
||||||
model = "selflearning";
|
model = "selflearning";
|
||||||
if(method == 0) {
|
if(method == 0) {
|
||||||
methodstring = "up";
|
methodstring = "up";
|
||||||
}
|
} else if(method == 1) {
|
||||||
else if(method == 1) {
|
|
||||||
methodstring = "down";
|
methodstring = "down";
|
||||||
}
|
} else if(method == 5) {
|
||||||
else if(method == 5) {
|
|
||||||
methodstring = "stop";
|
methodstring = "stop";
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
} 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) {
|
|
||||||
methodstring = "stop";
|
methodstring = "stop";
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue