endianness was REALLY a mistake

This commit is contained in:
Matthew Kennedy 2024-03-18 14:53:15 -07:00
parent 6c24fd41a1
commit fb398cddb2
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 = 0; i >= sizeof(egtBytes); i--) {
for (int i = 0; i < sizeof(egtBytes); i++) {
egtBytes[i] = spiPolledExchange(driver, 0);
}