mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Merge pull request #7579 from s-hadinger/fix_rgbwwtable
Fix ``RGBWWTable`` ignored (#7572)
This commit is contained in:
commit
4a44b9fc5f
@ -9,6 +9,7 @@
|
|||||||
- Add most SetOptions as defines to my_user_config.h
|
- Add most SetOptions as defines to my_user_config.h
|
||||||
- Add SoftwareSerial to CSE7766 driver allowing different GPIOs (#7563)
|
- Add SoftwareSerial to CSE7766 driver allowing different GPIOs (#7563)
|
||||||
- Add optional parameter <startcolor> to command ``Scheme <scheme>, <startcolor>`` to control initial start color
|
- Add optional parameter <startcolor> to command ``Scheme <scheme>, <startcolor>`` to control initial start color
|
||||||
|
- Fix ``RGBWWTable`` ignored (#7572)
|
||||||
|
|
||||||
### 8.1.0.3 20200106
|
### 8.1.0.3 20200106
|
||||||
|
|
||||||
|
@ -1799,6 +1799,14 @@ void LightAnimate(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Apply RGBWWTable only if Settings.rgbwwTable[4] != 0
|
||||||
|
if (0 != Settings.rgbwwTable[4]) {
|
||||||
|
for (uint32_t i = 0; i<Light.subtype; i++) {
|
||||||
|
uint32_t adjust = change8to10(Settings.rgbwwTable[i]);
|
||||||
|
cur_col_10[i] = changeUIntScale(cur_col_10[i], 0, 1023, 0, adjust);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// final adjusments for PMW, post-gamma correction
|
// final adjusments for PMW, post-gamma correction
|
||||||
for (uint32_t i = 0; i < LST_MAX; i++) {
|
for (uint32_t i = 0; i < LST_MAX; i++) {
|
||||||
// scale from 0..1023 to 0..pwm_range, but keep any non-zero value to at least 1
|
// scale from 0..1023 to 0..pwm_range, but keep any non-zero value to at least 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user