Suppressed uninitialized use warning

pull/41/head
Hieromon Ikasamo 6 years ago
parent 34a0d45b73
commit 838406c723
  1. 5
      src/AutoConnectPage.cpp

@ -969,7 +969,7 @@ String AutoConnect::_token_WIFI_STATUS(PageArgument& args) {
String AutoConnect::_token_STATION_STATUS(PageArgument& args) { String AutoConnect::_token_STATION_STATUS(PageArgument& args) {
AC_UNUSED(args); AC_UNUSED(args);
const char* wlStatusSymbol; const char* wlStatusSymbol ="";
static const char* wlStatusSymbols[] = { static const char* wlStatusSymbols[] = {
#if defined(ARDUINO_ARCH_ESP8266) #if defined(ARDUINO_ARCH_ESP8266)
"IDLE", "IDLE",
@ -1030,8 +1030,9 @@ String AutoConnect::_token_STATION_STATUS(PageArgument& args) {
case WL_DISCONNECTED: case WL_DISCONNECTED:
wlStatusSymbol = wlStatusSymbols[6]; wlStatusSymbol = wlStatusSymbols[6];
break; break;
default: case WL_NO_SHIELD:
wlStatusSymbol = wlStatusSymbols[7]; wlStatusSymbol = wlStatusSymbols[7];
break;
#endif #endif
} }
return String("(") + String(_rsConnect) + String(") ") + String(wlStatusSymbol); return String("(") + String(_rsConnect) + String(") ") + String(wlStatusSymbol);

Loading…
Cancel
Save