http page - set command will display channel alias and not an index

This commit is contained in:
openshwprojects
2023-01-26 09:49:24 +01:00
parent 1d4940e603
commit 8b3278466d

View File

@ -310,7 +310,7 @@ int http_fn_index(http_request_t* request) {
int newSetValue = atoi(tmpA);
http_getArg(request->url, "setIndex", tmpA, sizeof(tmpA));
j = atoi(tmpA);
hprintf255(request, "<h3>Changed channel %i to %i!</h3>", j, newSetValue);
hprintf255(request, "<h3>Changed channel %s to %i!</h3>", CHANNEL_GetLabel(j), newSetValue);
CHANNEL_Set(j, newSetValue, 1);
}
if (http_getArg(request->url, "restart", tmpA, sizeof(tmpA))) {