Fixed not cleared serial buffer after soft reset

backlash
Schildkroet 2018-11-18 12:59:06 +01:00 zatwierdzone przez GitHub
rodzic 218e98bc98
commit 5d3d1c71ee
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 0 usunięć

3
main.c
Wyświetl plik

@ -94,6 +94,9 @@ int main(void) {
// Start Grbl-Advanced main loop. Processes program inputs and executes them.
Protocol_MainLoop();
// Clear serial buffer after soft reset to prevent undefined behavior
FifoUsart_Init();
}
return 0;