Fix the "slow" version of the G-code parser
This commit is contained in:
committed by
Scott Lahteine
parent
c251601916
commit
21179f8300
@ -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)) { /* Intentionally left empty */ }
|
||||
while (!TEST(SPSR, SPIF)) { /* nada */ };
|
||||
SPDR = buf[i];
|
||||
while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
|
||||
while (!TEST(SPSR, SPIF)) { /* nada */ };
|
||||
SPDR = buf[i + 1];
|
||||
}
|
||||
while (!TEST(SPSR, SPIF)) { /* Intentionally left empty */ }
|
||||
while (!TEST(SPSR, SPIF)) { /* nada */ };
|
||||
SPI.endTransaction();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user