cmd: controller mode switch

This commit is contained in:
awalol
2026-05-05 15:19:22 +08:00
parent 0d32db4d9f
commit 351d71dfe1
5 changed files with 36 additions and 37 deletions
+4
View File
@@ -69,6 +69,10 @@ void config_valid() {
body->haptics_buffer_length = 48;
printf("[Config] haptics_buffer_length is invalid\n");
}
if (body->controller_mode > 1) {
body->controller_mode = 0;
printf("[Config] controller_mode is invalid\n");
}
}
void config_load() {