修复重大bug

This commit is contained in:
Your Name
2025-03-22 13:35:34 +08:00
parent f8d2b25d1e
commit e735afc6c5
6 changed files with 299 additions and 277 deletions

View File

@@ -228,9 +228,9 @@ static int HttpSetButtonEvent(httpd_request_t *req) {
int longPress;
sscanf(buf, "%d %d %d", &index, &func, &longPress);
if (longPress == 1) {
set_key_map(index, get_short_func(user_config->user[index]), func == -1 ? NO_FUNCTION : func);
set_key_map(user_config->user,index, get_short_func(user_config->user[index]), func == -1 ? NO_FUNCTION : func);
} else {
set_key_map(index, func == -1 ? NO_FUNCTION : func, get_long_func(user_config->user[index]));
set_key_map(user_config->user,index, func == -1 ? NO_FUNCTION : func, get_long_func(user_config->user[index]));
}
key_log("WARNGIN:set KEY func %d %d %d", index,get_short_func(user_config->user[index]),get_long_func(user_config->user[index]));
mico_system_context_update(sys_config);