From f9bfce6d79d3f0575e04e2049fa88b7f818cc7fb Mon Sep 17 00:00:00 2001
From: Eric Duminil <eric.duminil@gmail.com>
Date: Sun, 27 Dec 2020 14:18:19 +0100
Subject: [PATCH] HTTP -> AMPEL_HTTP

---
 ampel-firmware.h   | 2 +-
 ampel-firmware.ino | 4 ++--
 config.public.h    | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ampel-firmware.h b/ampel-firmware.h
index 12515ac..15b598e 100644
--- a/ampel-firmware.h
+++ b/ampel-firmware.h
@@ -18,7 +18,7 @@
 #ifdef LORAWAN
 #  include "lorawan.h"
 #endif
-#ifdef HTTP
+#ifdef AMPEL_HTTP
 #  include "web_server.h"
 #endif
 
diff --git a/ampel-firmware.ino b/ampel-firmware.ino
index 387eb13..43aa9e6 100644
--- a/ampel-firmware.ino
+++ b/ampel-firmware.ino
@@ -82,7 +82,7 @@ void setup() {
   Serial.println(WiFi.status());
 
   if (WiFi.status() == WL_CONNECTED) {
-#ifdef HTTP
+#ifdef AMPEL_HTTP
     web_server::initialize();
 #endif
 
@@ -186,7 +186,7 @@ void keepServicesAlive() {
     MDNS.update();
 #endif
     ntp::update(); // NTP client has its own timer. It will connect to NTP server every 60s.
-#ifdef HTTP
+#ifdef AMPEL_HTTP
     web_server::update();
 #endif
 #ifdef AMPEL_MQTT
diff --git a/config.public.h b/config.public.h
index d4ae25e..e588c63 100644
--- a/config.public.h
+++ b/config.public.h
@@ -67,7 +67,7 @@
  * available at http://local_ip, with user HTTP_USER and password HTTP_PASSWORD
  */
 
-#  define HTTP // Comment or remove this line if you want to disable HTTP webserver
+#  define AMPEL_HTTP // Comment or remove this line if you want to disable HTTP webserver
 
 // Define empty strings in order to disable authentication, or remove the constants altogether.
 #  define HTTP_USER "co2ampel"
-- 
GitLab