wait for UART Tx completion before switching baud rate at PTS

This commit is contained in:
Harald Welte
2016-03-20 14:57:53 +01:00
parent c8beefbf85
commit c58bba0833
3 changed files with 8 additions and 0 deletions

View File

@@ -454,6 +454,7 @@ static int tx_byte_pts(struct card_handle *ch)
switch (ch->pts.state) {
case PTS_S_WAIT_RESP_PCK:
card_emu_uart_wait_tx_idle(ch->uart_chan);
/* update baud rate generator with Fi/Di */
emu_update_fidi(ch);
/* Wait for the next TPDU */