Skip to content

Commit

Permalink
fix(stream deck): Fix sleep dimming resetting to full brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
Billiam committed Aug 26, 2022
1 parent 899517d commit a8dec87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/cli/animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default ({ duration, fps, loop = false, callback }) => {
0,
Math.min(max, (Date.now() - startTime) / duration)
)
callback(percent % 1)
callback(percent % (loop ? 1 : Infinity))
if (percent < 1 || loop) {
run()
}
Expand Down

0 comments on commit a8dec87

Please sign in to comment.