Add flow control by firmware to serial_uart

This commit is contained in:
tmk 2014-07-20 14:42:44 +09:00
parent 50bcaa66c4
commit 3e7875455e
4 changed files with 30 additions and 9 deletions

View file

@ -56,9 +56,7 @@ void rn42_task(void)
// Config mode: print output from RN-42
while ((c = serial_recv2()) != -1) {
// without flow control it'll fail to receive data when flooded
rn42_cts_hi();
xprintf("%c", c);
rn42_cts_lo();
}
} else {
// Raw mode: interpret output report of LED state