This fixes the following warning:
asix-sigma.c: In function 'receive_data':
asix-sigma.c:1064:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
devc->state.lastts = *(uint16_t *) buf - 1;
^
/* Find first ts. */
if (devc->state.chunks_downloaded == 0) {
/* Find first ts. */
if (devc->state.chunks_downloaded == 0) {
- devc->state.lastts = *(uint16_t *) buf - 1;
+ devc->state.lastts = RL16(buf) - 1;
devc->state.lastsample = 0;
}
devc->state.lastsample = 0;
}