修改按键配置相关的代码

This commit is contained in:
nhkefus
2025-03-21 16:24:24 +08:00
parent 56c9923336
commit b2bd368b2d

View File

@@ -226,7 +226,7 @@ static int HttpSetButtonEvent(httpd_request_t *req) {
int index;
int func;
int longPress;
sscanf(buf, "%d %d %d", &index, &func &longPress);
sscanf(buf, "%d %d %d", &index, &func, &longPress);
if (longPress) {
set_key_map(index, get_short_func(index), func == -1 ? NO_FUNCTION : func);
} else {