]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/center-3xx/protocol.c
center-3xx: Fix incorrect values due to endianness issue.
[libsigrok.git] / src / hardware / center-3xx / protocol.c
index 196e29de076dc7f96d31b40b736eacdff945498d..35fe15538642ee71fa43372d92ca0f07d11bf2ed 100644 (file)
@@ -89,7 +89,7 @@ static int packet_parse(const uint8_t *buf, int idx, struct center_info *info)
 
        /* Byte 7+8/9+10/11+12/13+14: channel T1/T2/T3/T4 temperature. */
        for (i = 0; i < NUM_CHANNELS; i++) {
-               temp_i16 = RL16S(&buf[7 + 2 * i]);
+               temp_i16 = RB16S(&buf[7 + 2 * i]);
                info->temp[i] = (float)temp_i16;
        }