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

Correct access method used for flag battery_voltage_reports_one_pack #2324

Conversation

dennypage
Copy link
Contributor

@dennypage dennypage commented Feb 27, 2024

The current code uses getval() to examine the setting of battery_voltage_reports_one_pack. However, since battery_voltage_reports_one_pack is a flag rather than a variable, getval() will always return null. Function testvar() must be used instead.

Closes: #2325

@jimklimov jimklimov added bug Qx protocol driver Driver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some others impacts-release-2.8.1 Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks) labels Feb 27, 2024
@jimklimov jimklimov added this to the 2.8.2 milestone Feb 27, 2024
@jimklimov jimklimov merged commit d9e79e8 into networkupstools:master Feb 29, 2024
4 of 6 checks passed
@dennypage dennypage deleted the fix_nutdrv_qx_battery_voltage_reports_one_pack branch February 29, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug impacts-release-2.8.1 Issues reported against NUT release 2.8.1 (maybe vanilla or with minor packaging tweaks) Qx protocol driver Driver based on Megatec Q<number> such as new nutdrv_qx, or obsoleted blazer and some others
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flag "battery_voltage_reports_one_pack" in nutdrv_qx is broken
2 participants