mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-12 18:35:26 +00:00
IMPORTANT fix for RGBCW light (0-255 color range when expected 0-100 by PWM caused flickering on T platform but not on N because N platform clamps pwm values and T does not)
This commit is contained in:
@ -841,7 +841,7 @@ int http_fn_cfg_ha(http_request_t *request) {
|
||||
|
||||
for(i = 0; i < PLATFORM_GPIO_MAX; i++) {
|
||||
int role = PIN_GetPinRoleForPinIndex(i);
|
||||
int ch = PIN_GetPinChannelForPinIndex(i);
|
||||
//int ch = PIN_GetPinChannelForPinIndex(i);
|
||||
if(role == IOR_Relay || role == IOR_Relay_n || role == IOR_LED || role == IOR_LED_n) {
|
||||
relayCount++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user