fix: check start_fvr_tmp_adc return value on FVR timeout #21

Merged
daru merged 3 commits from fix/fvr_timeout_unhandled into main 2026-07-27 03:24:19 +00:00
Contributor

Fixes #4

start_fvr_tmp_adc returns 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.

Fixes #4 `start_fvr_tmp_adc` returns 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.
start_fvr_tmp_adc returns 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.
daru left a comment

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.

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.
daru force-pushed fix/fvr_timeout_unhandled from d57e57b054 to d5cd7a9ed5 2026-07-27 02:33:51 +00:00 Compare
daru merged commit 747e71e2ec into main 2026-07-27 03:24:19 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
daru/PICsense!21
No description provided.