]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hameg-hmo/api.c
hameg-hmo: Use the host's endianess to read analog channel data via SCPI
[libsigrok.git] / src / hardware / hameg-hmo / api.c
index 92f5ab673a96fa4d48f94c7509465b90dd513f37..ead97cd4cef46eb48c4a28007d0bf3783c1c79d4 100644 (file)
@@ -568,6 +568,11 @@ SR_PRIV int hmo_request_data(const struct sr_dev_inst *sdi)
        case SR_CHANNEL_ANALOG:
                g_snprintf(command, sizeof(command),
                           (*model->scpi_dialect)[SCPI_CMD_GET_ANALOG_DATA],
+#ifdef WORDS_BIGENDIAN
+                          "MSBF",
+#else
+                          "LSBF",
+#endif
                           ch->index + 1);
                break;
        case SR_CHANNEL_LOGIC: