+ /*
+ * Determine the byte order which will be used for data blocks.
+ * A ":FORM:BORD?" request will yield either an "MSBF" or "LSBF"
+ * response.
+ */
+ state->byteorder = '?';
+ if (sr_scpi_get_string(scpi,
+ (*config->scpi_dialect)[SCPI_CMD_GET_BYTE_ORDER],
+ &tmp_str) != SR_OK)
+ return SR_ERR;
+ if (tmp_str[0] == 'M')
+ state->byteorder = 'b';
+ else if (tmp_str[0] == 'L')
+ state->byteorder = 'l';
+ g_free(tmp_str);
+