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

Update current & power in AcInputPhaseModel when the value is constan… #1332

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

DanielMcInnes
Copy link
Contributor

…tly 0

Prior to this change, if the first valid phase value was 0, and it remained at 0, we would display '--' in the ThreePhaseDisplay, even though we had a valid value of '0'.

Fixes #1326

…tly 0

Prior to this change, if the first valid phase value was 0, and it remained at
0, we would display '--' in the ThreePhaseDisplay, even though we had a valid
value of '0'.

Fixes #1326
@DanielMcInnes DanielMcInnes linked an issue Jul 15, 2024 that may be closed by this pull request
}
}
}

readonly property VeQuickItem _power: VeQuickItem {
uid: Global.system.serviceUid + "/Ac/ActiveIn/L" + (model.index + 1) + "/Power"
readonly property real powerValue: !isValid ? NaN : value
onPowerValueChanged: {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'onPowerValueChanged' never gets triggered if the value is always 0.

Copy link
Contributor

@blammit blammit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM. I couldn't repro on the test system as it had non-zero values at the time, but verified the fix in mock mode by forcing the value to 0.

@DanielMcInnes DanielMcInnes merged commit e78cc0c into main Jul 15, 2024
1 check 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.

L2 shows dashes while L1 and L3 don't
2 participants