Fix issue #439 Incorrect Output Voltage on CPS*EFPCLCD, including libusb-1.0 branch#1246
Closed
flashydave wants to merge 1 commit intonetworkupstools:libusb-1.0from
Closed
Fix issue #439 Incorrect Output Voltage on CPS*EFPCLCD, including libusb-1.0 branch#1246flashydave wants to merge 1 commit intonetworkupstools:libusb-1.0from
flashydave wants to merge 1 commit intonetworkupstools:libusb-1.0from
Conversation
|
This pull request introduces 1 alert when merging 0a94d76 into 5454b34 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 0a94d76 into f71c188 - view on LGTM.com new alerts:
|
Member
|
Oops, got auto-closed by merge of libusb-1.0 (target branch) into master. |
Contributor
Author
|
What do I need to do now?
Other than the merge conflict which was trivial to fix and
non-contentious my latest commit was tested OK on my hardware.
I merged locally with remote master and was about to test with cleanly
compiled code before pushing my final code.
Dave
…On 09:33, Wed 12 Jan 22, Jim Klimov wrote:
Oops, got auto-closed by merge of libusb-1.0 (target branch) into master.
--
Reply to this email directly or view it on GitHub:
#1246 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
Contributor
Author
|
My local tests passs OK.
This is my pull request commit 362ef2f merged with latest nut master
commit 74d3f50.
n 18:30, Wed 12 Jan 22, Dave Williams wrote:
…
What do I need to do now?
Other than the merge conflict which was trivial to fix and
non-contentious my latest commit was tested OK on my hardware.
I merged locally with remote master and was about to test with cleanly
compiled code before pushing my final code.
Dave
On 09:33, Wed 12 Jan 22, Jim Klimov wrote:
> Oops, got auto-closed by merge of libusb-1.0 (target branch) into master.
>
> --
> Reply to this email directly or view it on GitHub:
> #1246 (comment)
> You are receiving this because you authored the thread.
>
> Message ID: ***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the problem whereby the Output Voltage on Cyberpower CPS*EPFCLCD UPS's is masked.
The root cause is due to a legal but inappropriate Report Descriptor published as part of the HID.
Specifically it looks liike Report ID 17 was deleted (ie Report 16 is followed by Report 18) with the result that there was no attempt to reset the LogMin and LogMax values from those used by the HighVoltageTransfer Item for those used by the Output Voltage.
The fix conditionally corrects the Report Descriptor structure by applying the same LogMin and LogMax values used by the Input Voltage Item after first checking the issue exists.
The fix creates a generic framework for fixing Report Descriptors that can be used for different manufacturers by adding code to the appropriate subdriver rather than polluting the main code with UPS specific exceptions.
This version is identical to PR #1245 but is for the libusb-1.0 branch.