Skip to content

Commit d18f078

Browse files
authored
Merge pull request wled#3887 from gaaat98/0_15
fix for wled#3884
2 parents aa970d6 + 9ffcde8 commit d18f078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/bus_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ void BusPwm::show() {
505505
uint8_t numPins = NUM_PWM_PINS(_type);
506506
unsigned maxBri = (1<<_depth) - 1;
507507
#ifdef ESP8266
508-
unsigned pwmBri = (unsigned)(roundf(powf((float)_bri / 255.0f, 1.7f) * (float)maxBri + 0.5f)); // using gamma 1.7 to extrapolate PWM duty cycle
508+
unsigned pwmBri = (unsigned)(roundf(powf((float)_bri / 255.0f, 1.7f) * (float)maxBri)); // using gamma 1.7 to extrapolate PWM duty cycle
509509
#else
510510
unsigned pwmBri = cieLUT[_bri] >> (12 - _depth); // use CIE LUT
511511
#endif

0 commit comments

Comments
 (0)