cosmetic fix

This commit is contained in:
openshwprojects
2022-07-15 13:26:24 +02:00
parent ba6d40e2c3
commit 70538ea2a6

View File

@ -158,7 +158,11 @@ int http_fn_index(http_request_t *request) {
int newPWMValue = atoi(tmpA);
http_getArg(request->url,"pwmIndex",tmpA,sizeof(tmpA));
j = atoi(tmpA);
hprintf128(request,"<h3>Changed pwm %i to %i!</h3>",j,newPWMValue);
if(j == SPECIAL_CHANNEL_TEMPERATURE) {
hprintf128(request,"<h3>Changed Temperature to %i!</h3>",newPWMValue);
} else {
hprintf128(request,"<h3>Changed pwm %i to %i!</h3>",j,newPWMValue);
}
CHANNEL_Set(j,newPWMValue,1);
}
if(http_getArg(request->url,"dim",tmpA,sizeof(tmpA))) {