From cedfe874a44a20b0b773d955a1eca50532961feb Mon Sep 17 00:00:00 2001 From: dgatf Date: Mon, 9 Oct 2023 08:45:14 -0400 Subject: [PATCH] Ols read metadata in little endian --- src/hardware/openbench-logic-sniffer/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/openbench-logic-sniffer/protocol.c b/src/hardware/openbench-logic-sniffer/protocol.c index 528b05ce0..1629a22c9 100644 --- a/src/hardware/openbench-logic-sniffer/protocol.c +++ b/src/hardware/openbench-logic-sniffer/protocol.c @@ -234,7 +234,7 @@ SR_PRIV int ols_get_metadata(struct sr_dev_inst *sdi) if (serial_read_blocking(serial, &tmp_int, 4, delay_ms) != 4) break; - tmp_int = RB32(&tmp_int); + tmp_int = RL32(&tmp_int); sr_dbg("Got metadata token 0x%.2x value 0x%.8x.", key, tmp_int); switch (key) {