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:
openshwprojects
2022-04-18 23:08:29 +02:00
parent 7a75776bd0
commit c7f4a618f5
10 changed files with 102 additions and 7 deletions

View File

@ -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++;
}