Got rid of (most of) all of the warnings.

This commit is contained in:
2019-05-30 11:26:13 +02:00
parent 711d028e90
commit 0d3896ca0d
9 changed files with 8 additions and 9 deletions

View File

@ -4,7 +4,7 @@
#include "Effect.h"
typedef struct {
char* name;
const char* name;
Effect* effect;
} EffectEntry;

View File

@ -11,7 +11,7 @@ class AnimationEffect : public Effect {
int frame = 0;
CRGB background_color;
int xOffset, yOffset;
long frameSince = 0;
unsigned long frameSince = 0;
public:
AnimationEffect(AnimationData *anim);
AnimationEffect(AnimationData *anim, CRGB background_color);

View File

@ -7,7 +7,7 @@
class CycleEffect : public Effect {
private:
Effect* effect;
long effectSince = 0;
unsigned long effectSince = 0;
public:
void changeEffect();

View File

@ -11,9 +11,9 @@ class MatrixEffectColumn {
int x, y;
int length;
Window* window;
int speed;
uint16_t speed;
boolean running;
long last_move = 0;
unsigned long last_move = 0;
public:
MatrixEffectColumn();
MatrixEffectColumn(Window* win, int xPos);