Skip to content

Commit

Permalink
the endianness was right the first time
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Mar 18, 2024
1 parent fb398cd commit a49de26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/hw_layer/sensors/max31855.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a49de26

Please sign in to comment.