fix compiling standalone

This commit is contained in:
Proddy
2022-10-31 20:24:12 +01:00
parent 3baedf01d1
commit 103ffa4761

View File

@@ -226,6 +226,7 @@ void WebStatusService::mDNS_start() const {
}
const char * WebStatusService::disconnectReason(uint8_t code) {
#ifndef EMSESP_STANDALONE
switch (code) {
case WIFI_REASON_UNSPECIFIED: // = 1,
return "unspecifiied";
@@ -286,6 +287,8 @@ const char * WebStatusService::disconnectReason(uint8_t code) {
default:
return "unknown";
}
#endif
return "";
}