Skip to content

Commit

Permalink
mod_effects: use new time macros
Browse files Browse the repository at this point in the history
  • Loading branch information
janfietz committed Dec 6, 2018
1 parent 19488bc commit 26fd15c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/mod_effects/mod_effects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void ModuleEffects::ThreadMain() {
EffectReset(effCurrent, 0, 0, current);

// start timer
chVTSet(&effTimer, TIME_MS2I(30), ModuleEffects::TimerCallback,
chVTSet(&effTimer, TIME_S2I(30), ModuleEffects::TimerCallback,
reinterpret_cast<void*>(this));
}

Expand Down
4 changes: 2 additions & 2 deletions src/modules/mod_effects/mod_effects.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ModuleEffects : public qos::ThreadedModule<MOD_EFFECTS_THREADSIZE>

/*Effects*/
EffectRandomPixelsCfg effRandomCfg = {
.spawninterval = MS2ST(200),
.spawninterval = TIME_MS2I(200),
.color = {0xFF, 0xFF, 0xFF},
.randomRed = true,
.randomGreen = true,
Expand Down Expand Up @@ -122,7 +122,7 @@ class ModuleEffects : public qos::ThreadedModule<MOD_EFFECTS_THREADSIZE>
};

EffectWanderingCfg effWanderingCfg = {
.speed = 100,
.speed = TIME_MS2I(100),
.ledbegin = 0,
.ledend = LEDCOUNT - 1,
.dir = 0,
Expand Down

0 comments on commit 26fd15c

Please sign in to comment.