mirror of https://github.com/FOME-Tech/fome-fw.git
endianness was a mistake
This commit is contained in:
parent
362e681dcb
commit
85a031c20d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue