I just learned that unintialized variables in C can lead to lots of unexpected and hard-to-debug behaviour... :-/
This commit is contained in:
@ -43,12 +43,12 @@ protected:
|
||||
uint8_t currentFrame = 0;
|
||||
uint8_t* animation_data;
|
||||
CRGB* colors;
|
||||
CRGB* fgColor;
|
||||
CRGB* fgColor = NULL;
|
||||
CRGB* bgColor = new CRGB(0x000000);
|
||||
int8_t xOffset = 0;
|
||||
int8_t yOffset = 0;
|
||||
uint8_t startFrame;
|
||||
uint8_t endFrame;
|
||||
uint8_t startFrame = 0;
|
||||
uint8_t endFrame = 0;
|
||||
|
||||
virtual CRGB* getColor(uint8_t color_index);
|
||||
void drawFrame(Window* w, uint8_t frame_index);
|
||||
|
Reference in New Issue
Block a user