endianness was a mistake

This commit is contained in:
Matthew Kennedy 2024-03-17 11:50:43 -07:00
parent 362e681dcb
commit 85a031c20d
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ static uint32_t readEgtPacket(int egtChannel) {
spiStart(driver, &spiConfig[egtChannel]);
spiSelect(driver);
for (int i = sizeof(egtBytes) - 1; i >= 0; i--) {
for (int i = 0; i >= sizeof(egtBytes); i--) {
egtBytes[i] = spiPolledExchange(driver, 0);
}