Skip to content

Commit

Permalink
make use of non-integer transition
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Jan 12, 2021
1 parent 56e40d2 commit f16ab6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/espurna/light.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,10 @@ void lightUpdate(LightTransition transition) {
lightUpdate(_light_save, transition, Light::DefaultReport);
}

void lightUpdate(bool save) {
lightUpdate(save, lightTransition(), Light::DefaultReport);
}

void lightUpdate() {
lightUpdate(lightTransition());
}
Expand Down Expand Up @@ -1731,7 +1735,7 @@ void _lightBoot() {
_lightRestoreSettings();
}

lightUpdate(false, lightTransition(), Light::DefaultReport);
lightUpdate(false);
}

#if LIGHT_PROVIDER == LIGHT_PROVIDER_CUSTOM
Expand Down
1 change: 1 addition & 0 deletions code/espurna/light.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ void lightChannelStep(unsigned char id, long steps, long multiplier = LIGHT_STEP
void lightUpdate(bool save, LightTransition transition, Light::Report report);
void lightUpdate(bool save, LightTransition transition, int report);
void lightUpdate(LightTransition transition);
void lightUpdate(bool save);
void lightUpdate();

bool lightHasColor();
Expand Down

0 comments on commit f16ab6c

Please sign in to comment.