mirror of https://github.com/FOME-Tech/fome-fw.git
endianness was REALLY a mistake
This commit is contained in:
parent
6c24fd41a1
commit
fb398cddb2
|
@ -93,7 +93,7 @@ static uint32_t readEgtPacket(int egtChannel) {
|
||||||
spiStart(driver, &spiConfig[egtChannel]);
|
spiStart(driver, &spiConfig[egtChannel]);
|
||||||
spiSelect(driver);
|
spiSelect(driver);
|
||||||
|
|
||||||
for (int i = 0; i >= sizeof(egtBytes); i--) {
|
for (int i = 0; i < sizeof(egtBytes); i++) {
|
||||||
egtBytes[i] = spiPolledExchange(driver, 0);
|
egtBytes[i] = spiPolledExchange(driver, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue