From a68f5b321e48afc2e7b4c366895dfa70d71a5dd2 Mon Sep 17 00:00:00 2001
From: Eric Duminil <eric.duminil@gmail.com>
Date: Thu, 17 Feb 2022 00:38:54 +0100
Subject: [PATCH] Doc

---
 ampel-firmware/config.public.h | 1 -
 ampel-firmware/led_effects.cpp | 8 ++++----
 ampel-firmware/mqtt.cpp        | 6 +++---
 3 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/ampel-firmware/config.public.h b/ampel-firmware/config.public.h
index 7b04f3e..8839e26 100644
--- a/ampel-firmware/config.public.h
+++ b/ampel-firmware/config.public.h
@@ -157,7 +157,6 @@
 
 // WARNING: If AMPEL_LORAWAN is true, you need to modify the 3 following constants
 // They are written as hexadecimal strings, and will be parsed in the correct order.
-// They are written as hexadecimal strings, and will be parsed in the correct order.
 
 // This EUI must be in big-endian format, so most-significant-byte first.
 // You can copy the string from TheThingsNetwork as-is, without reversing the bytes.
diff --git a/ampel-firmware/led_effects.cpp b/ampel-firmware/led_effects.cpp
index a6dec5a..0096c53 100644
--- a/ampel-firmware/led_effects.cpp
+++ b/ampel-firmware/led_effects.cpp
@@ -151,7 +151,7 @@ namespace led_effects {
     }
   }
 
-//NOTE: basically one iteration of KITT wheel
+  //NOTE: basically one iteration of KITT wheel
   void showWaitingLED(uint32_t color) {
     using namespace config;
     delay(80);
@@ -168,9 +168,9 @@ namespace led_effects {
     kitt_offset++;
   }
 
-// Start K.I.T.T. led effect. Red color as default.
-// Simulate a moving LED with tail. First LED starts at 0, and moves along a triangular function. The tail follows, with decreasing brightness.
-// Takes approximately 1s for each direction.
+  // Start K.I.T.T. led effect. Red color as default.
+  // Simulate a moving LED with tail. First LED starts at 0, and moves along a triangular function. The tail follows, with decreasing brightness.
+  // Takes approximately 1s for each direction.
   void showKITTWheel(uint32_t color, uint16_t duration_s) {
     pixels.setBrightness(config::max_brightness);
     for (int i = 0; i < duration_s * config::led_count; ++i) {
diff --git a/ampel-firmware/mqtt.cpp b/ampel-firmware/mqtt.cpp
index 6e6bbbc..b0ab9a4 100644
--- a/ampel-firmware/mqtt.cpp
+++ b/ampel-firmware/mqtt.cpp
@@ -185,9 +185,9 @@ namespace mqtt {
     led_effects::showKITTWheel(color::green, 1);
   }
 
-// It can be hard to find the local IP of a sensor if it isn't connected to Serial port, and if mDNS is disabled.
-// If the sensor can be reach by MQTT, it can answer with info about local_ip and ssid.
-// The sensor will send the info to "CO2sensors/ESP123456/info".
+  // It can be hard to find the local IP of a sensor if it isn't connected to Serial port, and if mDNS is disabled.
+  // If the sensor can be reach by MQTT, it can answer with info about local_ip and ssid.
+  // The sensor will send the info to "CO2sensors/ESP123456/info".
   void sendInfoAboutLocalNetwork() {
     char info_topic[60]; // Should be enough for "CO2sensors/ESP123456/info"
     snprintf(info_topic, sizeof(info_topic), "%s/info", publish_topic);
-- 
GitLab