From f707712262a680f7cf131c005bbff0e679c638e2 Mon Sep 17 00:00:00 2001 From: pschatzmann Date: Sun, 4 Aug 2024 09:31:48 +0200 Subject: [PATCH] AudioServer cleanup --- src/AudioHttp/AudioServer.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/AudioHttp/AudioServer.h b/src/AudioHttp/AudioServer.h index 80785c60a5..a6c57fd8b3 100644 --- a/src/AudioHttp/AudioServer.h +++ b/src/AudioHttp/AudioServer.h @@ -10,8 +10,9 @@ # include # endif #endif + #ifdef USE_ETHERNET -#include +# include #endif #include "AudioCodecs/CodecWAV.h" @@ -279,13 +280,13 @@ class AudioServerT { #ifdef USE_WIFI using AudioServer = AudioServerT; using AudioServerWiFi = AudioServerT; -#else -using AudioServer = AudioServerT; #endif #ifdef USE_ETHERNET +using AudioServer = AudioServerT; using AudioServerEthernet = AudioServerT; #endif + /** * @brief A simple Arduino Webserver which streams the audio using the indicated * encoder.. This class is based on the WiFiServer class. All you need to do is