Add installation script, default state file, and update README for Acer RGB control

This commit is contained in:
Fernando Crespo
2026-01-30 16:59:42 -03:00
parent 4c1c7a5477
commit 44cfb84a5f
6 changed files with 113 additions and 1 deletions

View File

@@ -342,6 +342,10 @@ static bool load_and_apply_all(std::array<Settings,3>& states) {
if (hid_write_feature(newState, hwerr)) {
states[idx] = newState;
any = true;
} else {
// couldn't apply to hardware now (device may not exist yet), keep desired state
std::println("[WARN] failed to apply to hw for dev {}: {}", device_to_str(newState.device), hwerr);
states[idx] = newState;
}
}