修改按键配置相关的代码

This commit is contained in:
nhkefus
2025-03-21 12:20:49 +08:00
parent b38f9f91d8
commit f7b6b8ae0a
4 changed files with 192 additions and 75 deletions

View File

@@ -226,7 +226,7 @@ static int HttpSetShortClickEvent(httpd_request_t *req) {
int index;
int func;
sscanf(buf, "%d %d", &index, &func);
user_config->user[index + 1] = func;
set_key_map(index + 1,func, get_long_func(index + 1));
mico_system_context_update(sys_config);
send_http("OK", 2, exit, &err);