mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-20 00:43:22 +08:00
修改按键配置相关的代码
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user