mibuild/sim/server_tb: use SERIAL_SINK_ACK

This commit is contained in:
Florent Kermarrec 2015-03-04 00:55:35 +01:00
parent 2d6fbd7902
commit 3d7f9fd685
1 changed files with 2 additions and 2 deletions

View File

@ -137,8 +137,8 @@ int console_service(struct sim *s)
/* console --> fpga */
SERIAL_SINK_STB = s->rx_serial_stb;
SERIAL_SINK_DATA = s->rx_serial_data;
if (s->rx_serial_stb)
s->rx_serial_presented = 1;
if (SERIAL_SINK_STB & SERIAL_SINK_ACK)
s->rx_serial_presented = s->rx_serial_stb;
return 0;
}