Skip to content

Commit

Permalink
added inline: the function is only used in one place
Browse files Browse the repository at this point in the history
- saves a bit of flash
  • Loading branch information
DedeHai committed Dec 15, 2024
1 parent 35d4438 commit 98f7ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/FX_fcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ void Segment::stopTransition() {
}

// transition progression between 0-65535
void Segment::updateTransitionProgress() {
inline void Segment::updateTransitionProgress() {
_transitionprogress = 0xFFFFU;
if (isInTransition()) {
unsigned diff = millis() - _t->_start;
Expand Down

0 comments on commit 98f7ed6

Please sign in to comment.