rename haptics buf_len to audio buf_len

This commit is contained in:
awalol
2026-05-09 13:20:46 +08:00
parent 5d32bb6de9
commit c323c14f19
3 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -71,8 +71,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 > 128) {
body->haptics_buffer_length = 64;
if (body->audio_buffer_length < 16 || body->audio_buffer_length > 128) {
body->audio_buffer_length = 64;
printf("[Config] haptics_buffer_length is invalid\n");
}
if (body->controller_mode > 2) {