X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fasix-sigma%2Fprotocol.c;h=f052c51cc6091ece3ff8dc0160d771a1df6ca57a;hb=2a62a9c44e7690f68ca756c6a5b9189c32186b47;hp=1875b75658d8358f4a41938f5e0a6c9d64d23476;hpb=a53b8e4d74ae83bb2490569e371a3667855b5c52;p=libsigrok.git diff --git a/src/hardware/asix-sigma/protocol.c b/src/hardware/asix-sigma/protocol.c index 1875b756..f052c51c 100644 --- a/src/hardware/asix-sigma/protocol.c +++ b/src/hardware/asix-sigma/protocol.c @@ -1121,7 +1121,7 @@ static int check_and_submit_sample(struct dev_context *devc, */ static uint16_t sigma_dram_cluster_ts(struct sigma_dram_cluster *cluster) { - return read_u16le(&cluster->timestamp[0]); + return read_u16le((const uint8_t *)&cluster->timestamp); } /* @@ -1129,7 +1129,7 @@ static uint16_t sigma_dram_cluster_ts(struct sigma_dram_cluster *cluster) */ static uint16_t sigma_dram_cluster_data(struct sigma_dram_cluster *cl, int idx) { - return read_u16le(&cl->samples[idx].sample[0]); + return read_u16le((const uint8_t *)&cl->samples[idx]); } /*