From a49de26ea95fffd583bda0c8670103b73335de2d Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Mon, 18 Mar 2024 15:50:37 -0700 Subject: [PATCH] the endianness was right the first time --- firmware/hw_layer/sensors/max31855.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/hw_layer/sensors/max31855.cpp b/firmware/hw_layer/sensors/max31855.cpp index 93f344127f..c26237070e 100644 --- a/firmware/hw_layer/sensors/max31855.cpp +++ b/firmware/hw_layer/sensors/max31855.cpp @@ -93,7 +93,7 @@ static uint32_t readEgtPacket(int egtChannel) { spiStart(driver, &spiConfig[egtChannel]); spiSelect(driver); - for (int i = 0; i < sizeof(egtBytes); i++) { + for (int i = sizeof(egtBytes) - 1; i >= 0; i--) { egtBytes[i] = spiPolledExchange(driver, 0); }