mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-20 00:43:22 +08:00
修改按键配置相关的代码
This commit is contained in:
@@ -226,11 +226,11 @@ static int HttpSetButtonEvent(httpd_request_t *req) {
|
|||||||
int index;
|
int index;
|
||||||
int func;
|
int func;
|
||||||
int longPress;
|
int longPress;
|
||||||
sscanf(buf, "%d %d %d", &index, &func &longPress);
|
sscanf(buf, "%d %d %d", &index, &func, &longPress);
|
||||||
if(longPress){
|
if (longPress) {
|
||||||
set_key_map(index, get_short_func(index), func==-1?NO_FUNCTION:func);
|
set_key_map(index, get_short_func(index), func == -1 ? NO_FUNCTION : func);
|
||||||
}else{
|
} else {
|
||||||
set_key_map(index,func==-1?NO_FUNCTION:func, get_long_func(index));
|
set_key_map(index, func == -1 ? NO_FUNCTION : func, get_long_func(index));
|
||||||
}
|
}
|
||||||
mico_system_context_update(sys_config);
|
mico_system_context_update(sys_config);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user