Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rolled back code for artics nova 7 battery (it was more accurate) #368

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions src/devices/steelseries_arctis_nova_7.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,10 @@ static BatteryInfo arctis_nova_7_request_battery(hid_device* device_handle)

int bat = data_read[2];

if (bat >= BATTERY_MAX)
if (bat > BATTERY_MAX)
info.level = 100;
else if (bat == 0x3)
info.level = 50;
else if (bat == 0x2)
info.level = 15;
else if (bat == 0x1)
info.level = 5;
else
info.level = 0;
info.level = map(bat, BATTERY_MIN, BATTERY_MAX, 0, 100);

return info;
}
Expand Down
Loading