Skip to content

Commit 872465d

Browse files
softhack007DedeHai
authored andcommitted
typo in comments
1 parent b6f7428 commit 872465d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wled00/FX_fcn.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ void Segment::restoreSegenv(const tmpsegd_t &tmpSeg) {
380380

381381
uint8_t Segment::currentBri(bool useCct) const {
382382
unsigned prog = progress();
383-
if (prog < 0xFFFFU) { // progress() < 0xFFFF inplies that _t is a valid pointer
383+
if (prog < 0xFFFFU) { // progress() < 0xFFFF implies that _t is a valid pointer
384384
unsigned curBri = (useCct ? cct : (on ? opacity : 0)) * prog;
385385
curBri += (useCct ? _t->_cctT : _t->_briT) * (0xFFFFU - prog);
386386
return curBri / 0xFFFFU;
@@ -390,8 +390,8 @@ uint8_t Segment::currentBri(bool useCct) const {
390390

391391
uint8_t Segment::currentMode() const {
392392
#ifndef WLED_DISABLE_MODE_BLEND
393-
unsigned prog = progress(); // progress() < 0xFFFF inplies that _t is a valid pointer
394-
if (modeBlending && prog < 0xFFFFU) return _t->_modeT;
393+
unsigned prog = progress();
394+
if (modeBlending && prog < 0xFFFFU) return _t->_modeT; // progress() < 0xFFFF implies that _t is a valid pointer
395395
#endif
396396
return mode;
397397
}

0 commit comments

Comments
 (0)