Skip to content

Commit

Permalink
Fix warning from implicit fallthrough of switch
Browse files Browse the repository at this point in the history
  • Loading branch information
rbroker committed Mar 15, 2024
1 parent cd09b97 commit 35ff9cb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions ecodan-ha-local/ehal_hp.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ namespace ehal::hp
case HpMode::COOL_ROOM_TEMP:
[[fallthrough]]
case HpMode::COOL_FLOW_TEMP:
return F("cool");
}
return F("cool");
}
[[fallthrough]]
default:
return F("off");
}
Expand All @@ -113,10 +114,10 @@ namespace ehal::hp
{
case OperationMode::SH_ON:
[[fallthrough]]
case OperationMode::FROST_PROTECT:
case OperationMode::FROST_PROTECT:
return F("heating");
case OperationMode::COOL_ON:
return F("cooling");
return F("cooling");
case OperationMode::OFF:
[[fallthrough]]
case OperationMode::DHW_ON:
Expand Down Expand Up @@ -147,10 +148,10 @@ namespace ehal::hp
return F("Off");
case OperationMode::DHW_ON:
return F("Heating Water");
case OperationMode::SH_ON:
case OperationMode::SH_ON:
return F("Space Heating");
case OperationMode::COOL_ON:
return F("Space Cooling");
case OperationMode::COOL_ON:
return F("Space Cooling");
case OperationMode::FROST_PROTECT:
return F("Frost Protection");
case OperationMode::LEGIONELLA_PREVENTION:
Expand Down Expand Up @@ -195,7 +196,7 @@ namespace ehal::hp
case HpMode::COOL_ROOM_TEMP:
return F("Cool Target Temperature");
case HpMode::COOL_FLOW_TEMP:
return F("Cool Flow Temperature");
return F("Cool Flow Temperature");
default:
return F("Unknown");
}
Expand Down

0 comments on commit 35ff9cb

Please sign in to comment.