fix: check start_fvr_tmp_adc return value on FVR timeout #21
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wait-to-fix
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
daru/PICsense!21
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/fvr_timeout_unhandled"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #4
start_fvr_tmp_adcreturns 1 if FVR fails to stabilize within the timeout period. Previously the return value was discarded, meaning ADC readings would be garbage if FVR failed.Now the return value is checked and the transmission cycle is skipped if FVR fails, preventing garbage data from being transmitted.
Makes sense, don't transmit stale data, but I think I would prefer to send an error field of some sort, rather than to not transmit at all. Might need a change in transmit schema and in decoding on rtl_433.
d57e57b054tod5cd7a9ed5