From fb398cddb218572d919db431be171b792cc32602 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Mon, 18 Mar 2024 14:53:15 -0700 Subject: [PATCH] endianness was REALLY a mistake --- 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 a833e50657..93f344127f 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 = 0; i < sizeof(egtBytes); i++) { egtBytes[i] = spiPolledExchange(driver, 0); }