From 3d7f9fd6850e60b05f38902576933d9fcee4c6c9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 4 Mar 2015 00:55:35 +0100 Subject: [PATCH] mibuild/sim/server_tb: use SERIAL_SINK_ACK --- mibuild/sim/server_tb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mibuild/sim/server_tb.cpp b/mibuild/sim/server_tb.cpp index 9e7139d7e..f93e2962c 100644 --- a/mibuild/sim/server_tb.cpp +++ b/mibuild/sim/server_tb.cpp @@ -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; }