Fixed ledstrip compiling

This commit is contained in:
CommanderRedYT
2022-01-03 00:52:32 +01:00
parent 55496ce87f
commit 7466a2c3d2
2 changed files with 7 additions and 7 deletions

View File

@ -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<CRGB> leds;
extern uint8_t gHue;

View File

@ -219,7 +219,7 @@ public:
struct {
ConfigWrapper<bool> enableLedAnimation {true, DoReset, {}, "enableLedAnimat" };
ConfigWrapper<bool> enableBrakeLights {true, DoReset, {}, "enableBrakeLigh" };
ConfigWrapper<int16_t> ledsCount {LEDSTRIP_LENGTH, DoReset, {}, "ledsCount" };
ConfigWrapper<int16_t> ledsCount {288, DoReset, {}, "ledsCount" };
ConfigWrapper<int16_t> centerOffset {1, DoReset, {}, "centerOffset" };
ConfigWrapper<int16_t> smallOffset {4, DoReset, {}, "smallOffset" };
ConfigWrapper<int16_t> bigOffset {10, DoReset, {}, "bigOffset" };