Added missing space after braces, according to Google style guidelines "whitespace/braces"
This commit is contained in:
parent
ae841861b2
commit
14399b2d7f
1 changed files with 8 additions and 8 deletions
|
@ -165,31 +165,31 @@ std::string ProtocolHasta::decodeData(const ControllerMessage& dataMsg) {
|
|||
house = allData & 0xFFFF;
|
||||
house = ((house << 8) | (house >> 8)) & 0xFFFF;
|
||||
model = "selflearning";
|
||||
if(method == 0){
|
||||
if(method == 0) {
|
||||
methodstring = "up";
|
||||
}
|
||||
else if(method == 1){
|
||||
else if(method == 1) {
|
||||
methodstring = "down";
|
||||
}
|
||||
else if(method == 5){
|
||||
else if(method == 5) {
|
||||
methodstring = "stop";
|
||||
}
|
||||
else{
|
||||
else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
else{
|
||||
else {
|
||||
// version2
|
||||
house = allData & 0xFFFF;
|
||||
|
||||
model = "selflearningv2";
|
||||
if(method == 12){
|
||||
if(method == 12) {
|
||||
methodstring = "up";
|
||||
}
|
||||
else if(method == 1 || method == 8){ // is method 8 correct?
|
||||
else if(method == 1 || method == 8) { // is method 8 correct?
|
||||
methodstring = "down";
|
||||
}
|
||||
else if(method == 5){
|
||||
else if(method == 5) {
|
||||
methodstring = "stop";
|
||||
}
|
||||
else{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue