diff --git a/main/ledstrip.h b/main/ledstrip.h index 1a05e94..6570f96 100644 --- a/main/ledstrip.h +++ b/main/ledstrip.h @@ -10,6 +10,12 @@ // local includes #include "ledstripdefines.h" +#define OtaAnimationModesValues(x) \ + x(None) \ + x(GreenProgressBar) \ + x(ColorChangeAll) +DECLARE_TYPESAFE_ENUM(OtaAnimationModes, : uint8_t, OtaAnimationModesValues) + #ifdef FEATURE_LEDSTRIP enum Bobbycar_Side { @@ -23,12 +29,6 @@ enum Bobbycar_Side FRONT }; -#define OtaAnimationModesValues(x) \ - x(None) \ - x(GreenProgressBar) \ - x(ColorChangeAll) -DECLARE_TYPESAFE_ENUM(OtaAnimationModes, : uint8_t, OtaAnimationModesValues) - extern std::vector leds; extern uint8_t gHue; diff --git a/main/newsettings.h b/main/newsettings.h index 39c24cd..a3e03ff 100644 --- a/main/newsettings.h +++ b/main/newsettings.h @@ -219,7 +219,7 @@ public: struct { ConfigWrapper enableLedAnimation {true, DoReset, {}, "enableLedAnimat" }; ConfigWrapper enableBrakeLights {true, DoReset, {}, "enableBrakeLigh" }; - ConfigWrapper ledsCount {LEDSTRIP_LENGTH, DoReset, {}, "ledsCount" }; + ConfigWrapper ledsCount {288, DoReset, {}, "ledsCount" }; ConfigWrapper centerOffset {1, DoReset, {}, "centerOffset" }; ConfigWrapper smallOffset {4, DoReset, {}, "smallOffset" }; ConfigWrapper bigOffset {10, DoReset, {}, "bigOffset" };