From 6b94c56f49358b7321e54bccb7e4a35e12bf5986 Mon Sep 17 00:00:00 2001 From: Troy <5659019+troyhacks@users.noreply.github.com> Date: Mon, 11 Dec 2023 16:41:16 -0500 Subject: [PATCH] Update Animated_Staircase.h Minor typos in comments --- usermods/Animated_Staircase/Animated_Staircase.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usermods/Animated_Staircase/Animated_Staircase.h b/usermods/Animated_Staircase/Animated_Staircase.h index e6ef3cc1..a5dd6945 100644 --- a/usermods/Animated_Staircase/Animated_Staircase.h +++ b/usermods/Animated_Staircase/Animated_Staircase.h @@ -16,7 +16,7 @@ class Animated_Staircase : public Usermod { /* configuration (available in API and stored in flash) */ bool enabled = false; // Enable this usermod unsigned long segment_delay_ms = 150; // Time between switching each segment - unsigned long on_time_ms = 5000; // The time for the light to stay on - TroyHacks: 5s for testing + unsigned long on_time_ms = 5000; // The time for the light to stay on - TroyHacks: 5s for testing int8_t topPIRorTriggerPin = -1; // disabled int8_t bottomPIRorTriggerPin = -1; // disabled int8_t topEchoPin = -1; // disabled @@ -71,7 +71,7 @@ class Animated_Staircase : public Usermod { // last sensor state, or trigger a sensor // through the API bool topSensorRead = false; - bool topSensorWrite = false; + bool = false; bool bottomSensorRead = false; bool bottomSensorWrite = false; bool topSensorState = false; @@ -196,7 +196,7 @@ class Animated_Staircase : public Usermod { } // Values read, reset the flags for next API call - topSensorWrite = false; + = false; bottomSensorWrite = false; if (topSensorRead != bottomSensorRead) { @@ -233,7 +233,7 @@ class Animated_Staircase : public Usermod { if (bottomSensorState || topSensorState) return; // Swipe OFF in the direction of the last sensor detection - // WLED-MM/TroyHacks: This should follow you up/dowm the stairs. + // WLED-MM/TroyHacks: This should follow you up/down the stairs. if (lastSensor == SWIPE_UP) { swipe = SWIPE_DOWN; } else { @@ -375,7 +375,7 @@ class Animated_Staircase : public Usermod { bottomSensorWrite = true; return true; } else if (action == "down") { - topSensorWrite = true; + = true; return true; } else if (action == "on") { enable(true);