start_fvr_tmp_adc return value discarded - FVR timeout unhandled #4

Closed
opened 2026-07-26 17:01:58 +00:00 by daru · 2 comments
Owner

start_fvr_tmp_adc returns 0 on success, 1 on FVR timeout, but main.c discards the return value. If FVR fails to stabilize, ADC readings will be garbage.

Fix: check return value and handle timeout case.

start_fvr_tmp_adc returns 0 on success, 1 on FVR timeout, but main.c discards the return value. If FVR fails to stabilize, ADC readings will be garbage. Fix: check return value and handle timeout case.
Contributor

Fixed in PR #21: check return value of start_fvr_tmp_adc, skip transmission cycle if FVR fails to stabilize.

Fixed in PR #21: check return value of `start_fvr_tmp_adc`, skip transmission cycle if FVR fails to stabilize.
daru closed this issue 2026-07-27 02:22:53 +00:00
Contributor

Updated PR #21: instead of skipping transmission on FVR timeout, now sets bit 15 of TX_STATUS and continues transmitting. Decoder extracts this flag and reports fvr_error=1 with temp=-999.0°C.

Updated PR #21: instead of skipping transmission on FVR timeout, now sets bit 15 of TX_STATUS and continues transmitting. Decoder extracts this flag and reports fvr_error=1 with temp=-999.0°C.
Sign in to join this conversation.
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#4
No description provided.