General cleanup of HAL code
This commit is contained in:
@ -91,12 +91,12 @@ void spiSendBlock(uint8_t token, const uint8_t* buf) {
|
||||
SPI.beginTransaction(spiConfig);
|
||||
SPDR = token;
|
||||
for (uint16_t i = 0; i < 512; i += 2) {
|
||||
while (!TEST(SPSR, SPIF)) { /* nada */ };
|
||||
while (!TEST(SPSR, SPIF)) { /* nada */ };
|
||||
SPDR = buf[i];
|
||||
while (!TEST(SPSR, SPIF)) { /* nada */ };
|
||||
while (!TEST(SPSR, SPIF)) { /* nada */ };
|
||||
SPDR = buf[i + 1];
|
||||
}
|
||||
while (!TEST(SPSR, SPIF)) { /* nada */ };
|
||||
while (!TEST(SPSR, SPIF)) { /* nada */ };
|
||||
SPI.endTransaction();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user