reinstate handling for STATUS(ONLINE) in usbhid-ups#1359
Merged
jimklimov merged 1 commit intonetworkupstools:masterfrom Apr 10, 2022
sthen:patch-1
Merged
reinstate handling for STATUS(ONLINE) in usbhid-ups#1359jimklimov merged 1 commit intonetworkupstools:masterfrom sthen:patch-1
jimklimov merged 1 commit intonetworkupstools:masterfrom
sthen:patch-1
Conversation
The recent onlinedischarge changes removed support for some STATUS(ONLINE) cases, affecting at least CP1300EPFCLCD - this brings them back.
Member
|
Hello, thanks for the heads-up, catch and fix! I just updated the original description to link to PR that added the change, for the context:
|
Member
|
CI is currently busy checking a few other PRs that I plan to merge as a single wad later in the weekend, to avoid spurious rebuilds. |
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.
I have a CyberPower CP1300EPFCLCD which in normal conditions reports ACPresent 1 / Charging 0 / Discharging 0 (presumably the battery condition is OK so it has no need to actively charge). This isn't handled by the change recently brought in for onlinedischarge (a8e3687 in usbhid-ups.c, PR #811).
Here's an excerpt from -DDDDDD showing the problem.
With usbhid-ups.c from before this commit, or with the patch in this PR, status is set as 'send_to_all: SETINFO ups.status "OL"'.
Hopefully this has everything you need, if not then please let me know what further information I can provide. Thanks!