mirror of
https://github.com/wled/WLED.git
synced 2025-07-23 02:36:39 +00:00
typo in comments
This commit is contained in:
parent
601c260146
commit
60991970d6
@ -380,7 +380,7 @@ void Segment::restoreSegenv(const tmpsegd_t &tmpSeg) {
|
|||||||
|
|
||||||
uint8_t Segment::currentBri(bool useCct) const {
|
uint8_t Segment::currentBri(bool useCct) const {
|
||||||
unsigned prog = progress();
|
unsigned prog = progress();
|
||||||
if (prog < 0xFFFFU) { // progress() < 0xFFFF inplies that _t is a valid pointer
|
if (prog < 0xFFFFU) { // progress() < 0xFFFF implies that _t is a valid pointer
|
||||||
unsigned curBri = (useCct ? cct : (on ? opacity : 0)) * prog;
|
unsigned curBri = (useCct ? cct : (on ? opacity : 0)) * prog;
|
||||||
curBri += (useCct ? _t->_cctT : _t->_briT) * (0xFFFFU - prog);
|
curBri += (useCct ? _t->_cctT : _t->_briT) * (0xFFFFU - prog);
|
||||||
return curBri / 0xFFFFU;
|
return curBri / 0xFFFFU;
|
||||||
@ -390,8 +390,8 @@ uint8_t Segment::currentBri(bool useCct) const {
|
|||||||
|
|
||||||
uint8_t Segment::currentMode() const {
|
uint8_t Segment::currentMode() const {
|
||||||
#ifndef WLED_DISABLE_MODE_BLEND
|
#ifndef WLED_DISABLE_MODE_BLEND
|
||||||
unsigned prog = progress(); // progress() < 0xFFFF inplies that _t is a valid pointer
|
unsigned prog = progress();
|
||||||
if (modeBlending && prog < 0xFFFFU) return _t->_modeT;
|
if (modeBlending && prog < 0xFFFFU) return _t->_modeT; // progress() < 0xFFFF implies that _t is a valid pointer
|
||||||
#endif
|
#endif
|
||||||
return mode;
|
return mode;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user