The single sample buffer, up to 4 bytes long, was not getting initialized
on (every) acquisition start, only after the first full sample was in.
This caused the first sample to potentially hold garbage.
/* Reset all operational states. */
devc->num_transfers = devc->num_samples = devc->num_bytes = 0;
/* Reset all operational states. */
devc->num_transfers = devc->num_samples = devc->num_bytes = 0;
+ memset(devc->sample, 0, 4);
/* Send header packet to the session bus. */
std_session_send_df_header(cb_data, LOG_PREFIX);
/* Send header packet to the session bus. */
std_session_send_df_header(cb_data, LOG_PREFIX);