Browse Source

fix debug uart num

pull/45/head
Sergey 4 years ago
parent
commit
3d73738bff
  1. 4
      Marlin/src/module/mks_wifi/debug_to_uart.cpp

4
Marlin/src/module/mks_wifi/debug_to_uart.cpp

@ -18,10 +18,10 @@ void debug_to_uart(char *fmt,...){
//SERIAL_ECHOLN((char *)&buffer); //SERIAL_ECHOLN((char *)&buffer);
while(*ptr){ while(*ptr){
while(MYSERIAL2.availableForWrite()==0){ while(MYSERIAL1.availableForWrite()==0){
safe_delay(10); safe_delay(10);
} }
MYSERIAL2.write(*ptr++); MYSERIAL1.write(*ptr++);
} }

Loading…
Cancel
Save