From 103ffa47612130ab38578d3652608ec21e4f9b29 Mon Sep 17 00:00:00 2001 From: Proddy Date: Mon, 31 Oct 2022 20:24:12 +0100 Subject: [PATCH] fix compiling standalone --- src/web/WebStatusService.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/web/WebStatusService.cpp b/src/web/WebStatusService.cpp index 1b9935bfc..97eac7156 100644 --- a/src/web/WebStatusService.cpp +++ b/src/web/WebStatusService.cpp @@ -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 ""; }