1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-30 15:26:18 +00:00

Merge pull request #4688 from AnHardt/crittical_section

Repair MarlinSerial with TX-buffer
This commit is contained in:
Scott Lahteine 2016-08-23 03:31:12 -05:00 committed by GitHub
commit 13e337ac4b

View File

@ -244,10 +244,11 @@ void MarlinSerial::flush(void) {
}
tx_buffer.buffer[tx_buffer.head] = c;
CRITICAL_SECTION_START;
tx_buffer.head = i;
SBI(M_UCSRxB, M_UDRIEx);
CRITICAL_SECTION_END;
{ CRITICAL_SECTION_START;
tx_buffer.head = i;
SBI(M_UCSRxB, M_UDRIEx);
CRITICAL_SECTION_END;
}
return;
}