adjust buf_len and inactive_time range

This commit is contained in:
awalol
2026-05-07 18:52:53 +08:00
parent 767e7437f7
commit 8155ebdfec
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -54,7 +54,7 @@ void config_valid() {
body->speaker_volume = 2.0f;
printf("[Config] Speaker Volume is invalid\n");
}
if (body->inactive_time < 10 || body->inactive_time > 60) {
if (body->inactive_time < 5 || body->inactive_time > 60) {
body->inactive_time = 30;
printf("[Config] Inactive time is invalid\n");
}
@@ -70,8 +70,8 @@ void config_valid() {
body->polling_rate_mode = 0;
printf("[Config] polling_rate_mode is invalid\n");
}
if (body->haptics_buffer_length < 16 || body->haptics_buffer_length > 255) {
body->haptics_buffer_length = 48;
if (body->haptics_buffer_length < 16 || body->haptics_buffer_length > 128) {
body->haptics_buffer_length = 64;
printf("[Config] haptics_buffer_length is invalid\n");
}
if (body->controller_mode > 1) {