Skip to content

Fix HID++ battery voltage out-of-range handling#516

Merged
Sapd merged 1 commit intoSapd:masterfrom
eriosgamer:fix/hidpp-battery-out-of-range
May 5, 2026
Merged

Fix HID++ battery voltage out-of-range handling#516
Sapd merged 1 commit intoSapd:masterfrom
eriosgamer:fix/hidpp-battery-out-of-range

Conversation

@eriosgamer
Copy link
Copy Markdown
Contributor

Summary

  • Add minimum voltage check in HIDPPDevice::requestBatteryHIDPP to return BATTERY_UNAVAILABLE when voltage is below calibrated minimum
  • Prevents spline interpolation on invalid/offline device readings

Details

All HID++ battery calibrations store voltages in descending order, so calibration.voltages.back() correctly returns the minimum valid voltage.

Affected Devices

  • Logitech G633/G635/G733/G933/G935 (LOGITECH_G633 calibration)
  • Logitech G533 (LOGITECH_G533 calibration)
  • Logitech G535 (LOGITECH_G535 calibration)
  • Logitech G PRO Series (LOGITECH_G PRO calibration)

Add minimum voltage check in HIDPPDevice::requestBatteryHIDPP to return
BATTERY_UNAVAILABLE when measured voltage is below the device's calibrated
minimum. This prevents spline interpolation on invalid readings from
offline or disconnected headsets.

All HID++ battery calibrations store voltages in descending order, so
calibration.voltages.back() correctly returns the minimum valid voltage.

Affected devices:
- Logitech G633/G635/G733/G933/G935 (LOGITECH_G633 calibration)
- Logitech G533 (LOGITECH_G533 calibration)
- Logitech G535 (LOGITECH_G535 calibration)
- Logitech G PRO Series (LOGITECH_GPRO calibration)
@Sapd Sapd merged commit 694b857 into Sapd:master May 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants