Skip to content

Fix/diagnostics sentinel - #19

Merged
jasasonc merged 2 commits into
masterfrom
fix/diagnostics-sentinel
Jul 10, 2026
Merged

Fix/diagnostics sentinel#19
jasasonc merged 2 commits into
masterfrom
fix/diagnostics-sentinel

Conversation

@jasasonc

Copy link
Copy Markdown
Collaborator

Fixes diagnostics() returning a junk -138.3 sentinel for temperature
sensors this camera model doesn't have. The docs say those come back as
None; now they actually do. A real reading never hits that exact value,
so genuine temperatures are untouched.

Closes #16

jasasonc added 2 commits July 8, 2026 12:30
The diagnostics() docstring promises None for temperature locations the camera
model does not support, but the TS-IR returns the raw ADC-floor sentinel
(-138.30128479003906 C) for absent thermistors instead of rejecting the read,
so the bogus value leaked through. Detect that exact sentinel and map it to
None so the contract holds. Closes #16.
…tinel

# Conflicts:
#	docs/source/changelog.rst
@jasasonc
jasasonc merged commit 3495830 into master Jul 10, 2026
8 checks 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.

diagnostics() returns a -138.3 sentinel instead of the documented None for unsupported locations

1 participant