使用 absolute_time_t 替代 time_us_32 作为计时器

This commit is contained in:
awalol
2026-05-05 18:47:39 +08:00
parent c665eab4d5
commit a887c6fb39
3 changed files with 15 additions and 10 deletions
+4
View File
@@ -53,6 +53,10 @@ void config_valid() {
body->speaker_volume = 2.0f;
printf("[Config] Speaker Volume is invalid\n");
}
if (body->inactive_time < 10 || body->inactive_time > 60) {
body->inactive_time = 30;
printf("[Config] Inactive time is invalid\n");
}
if (body->disable_inactive_disconnect > 1) {
body->disable_inactive_disconnect = 0;
printf("[Config] disable_auto_disconnect is invalid\n");