Skip to content

Commit

Permalink
Usermod transition change
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek committed Nov 28, 2023
1 parent b88344a commit 8de2301
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion usermods/Animated_Staircase/Animated_Staircase.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class Animated_Staircase : public Usermod {

// shorten the strip transition time to be equal or shorter than segment delay
transitionDelay = segment_delay_ms;
strip.setTransition(segment_delay_ms/100);
strip.setTransition(segment_delay_ms);
strip.trigger();
} else {
if (togglePower && !on && offMode) toggleOnOff(); // toggle power on if off
Expand Down
2 changes: 2 additions & 0 deletions usermods/stairway_wipe_basic/stairway-wipe-usermod-v2.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class StairwayWipeUsermod : public Usermod {
void startWipe()
{
bri = briLast; //turn on
jsonTransitionOnce = true;
strip.setTransition(0); //no transition
effectCurrent = FX_MODE_COLOR_WIPE;
resetTimebase(); //make sure wipe starts from beginning
Expand All @@ -105,6 +106,7 @@ class StairwayWipeUsermod : public Usermod {

void turnOff()
{
jsonTransitionOnce = true;
#ifdef STAIRCASE_WIPE_OFF
strip.setTransition(0); //turn off immediately after wipe completed
#else
Expand Down

0 comments on commit 8de2301

Please sign in to comment.