Skip to content

Commit

Permalink
Avoid default In switch Statements
Browse files Browse the repository at this point in the history
  • Loading branch information
PBrunot committed Dec 21, 2024
1 parent 535c285 commit ad3dfe1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions include/language/en-US.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ namespace fabomatic::strings::en_US
inline constexpr auto S_HW_ERROR = "HW error";
inline constexpr auto S_PORTAL_ERROR = "Portal error";
inline constexpr auto S_OTA_ERROR = "OTA error";
inline constexpr auto S_STATUS_ERROR_1 = "Unhandled status";
inline constexpr auto S_STATUS_ERROR_2 = "value";

inline constexpr auto S_PORTAL_SUCCESS = "WiFi conf. OK";
inline constexpr auto S_OPEN_PORTAL = "Open portal";
Expand Down
2 changes: 0 additions & 2 deletions include/language/it-IT.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ namespace fabomatic::strings::it_IT
inline constexpr auto S_HW_ERROR = "Errore HW";
inline constexpr auto S_PORTAL_ERROR = "Errore portale";
inline constexpr auto S_OTA_ERROR = "Errore OTA";
inline constexpr auto S_STATUS_ERROR_1 = "Unhandled status";
inline constexpr auto S_STATUS_ERROR_2 = "value";

inline constexpr auto S_PORTAL_SUCCESS = "Conf. WiFi OK";
inline constexpr auto S_OPEN_PORTAL = "Apri portale";
Expand Down
5 changes: 0 additions & 5 deletions src/BoardLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,6 @@ namespace fabomatic
lcd.setRow(0, strings::S_OTA_ERROR);
lcd.setRow(1, "");
break;
default:
lcd.setRow(0, strings::S_STATUS_ERROR_1);
buffer << strings::S_STATUS_ERROR_2 << static_cast<int>(status);
lcd.setRow(1, buffer.str());
break;
}
BoardInfo bi = {server.isOnline(), machine.getPowerState(), machine.isShutdownImminent(), !server.isResponsive()};
lcd.update(bi, false);
Expand Down
3 changes: 0 additions & 3 deletions src/mock/MockMQTTBroker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ namespace fabomatic
ESP_LOGD(TAG2, "MQTT BROKER: got unsubscribe from %s", e->Topic().c_str());
}
break;
default:
ESP_LOGD(TAG2, "MQTT BROKER: unhandled event %d", event->Type());
break;
}
return true;
}
Expand Down

0 comments on commit ad3dfe1

Please sign in to comment.