Skip to content

fix(bluetooth): preserve signed S400 hydration shifts - #1590

Open
aronnoordhoek wants to merge 1 commit into
oliexdev:masterfrom
aronnoordhoek:fix/s400-hydration-shift
Open

aronnoordhoek wants to merge 1 commit into
oliexdev:masterfrom
aronnoordhoek:fix/s400-hydration-shift

Conversation

@aronnoordhoek

@aronnoordhoek aronnoordhoek commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

S400 hydration shift can be zero or negative, but ScaleMeasurement discards both. This adds a reusable numeric policy for measurement keys—positive by default, with non-negative and signed options—and applies the signed policy to S400 hydration shift. Every policy rejects non-finite floating-point values.

Tanita RD-545 support in #1592 also depends on this policy to preserve zero-valued assessment codes and signed scores/reactance.

Fixes #1588.

Validation: 1,078 unit tests pass; debug APK builds; instrumented tests compile; lint has zero errors.

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.

S400 hydration shift loses decreases and exact zero in ScaleMeasurement

1 participant