mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix compiling standalone
This commit is contained in:
@@ -226,6 +226,7 @@ void WebStatusService::mDNS_start() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const char * WebStatusService::disconnectReason(uint8_t code) {
|
const char * WebStatusService::disconnectReason(uint8_t code) {
|
||||||
|
#ifndef EMSESP_STANDALONE
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case WIFI_REASON_UNSPECIFIED: // = 1,
|
case WIFI_REASON_UNSPECIFIED: // = 1,
|
||||||
return "unspecifiied";
|
return "unspecifiied";
|
||||||
@@ -286,6 +287,8 @@ const char * WebStatusService::disconnectReason(uint8_t code) {
|
|||||||
default:
|
default:
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user