From 52ac826a2bf5345d7af8c1bbb42a0433ddd14797 Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Wed, 29 Feb 2012 13:46:57 -0800 Subject: [PATCH] Fix a bug causing TMP006 debug message truncated. The debug message is larger than UART transmit buffer so we have to flush the output manually. Signed-off-by: Vic Yang BUG=chrome-os-partner:8265 TEST='tmp006' shows debug message of all TMP006 sensors. Change-Id: I81793504e1a345b172567d3e877ee8740b85640c --- common/tmp006.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/tmp006.c b/common/tmp006.c index 6d3cf5edf4..54e37f8e2b 100644 --- a/common/tmp006.c +++ b/common/tmp006.c @@ -265,6 +265,7 @@ static int command_sensor_info(int argc, char **argv) rv = tmp006_print(i); if (rv != EC_SUCCESS) rv1 = rv; + uart_flush_output(); } return rv1;