From 0228696f48258355dcc830daec454e3ca5e81971 Mon Sep 17 00:00:00 2001 From: PaggyCyntec Date: Tue, 7 Apr 2015 14:39:58 +0800 Subject: [PATCH] Update main.cpp removed "union" because it causes the result of auto-test not stable (sometimes FAIL, sometimes PASS), after removed, the test result is all PASS. --- libraries/tests/mbed/stdio/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/tests/mbed/stdio/main.cpp b/libraries/tests/mbed/stdio/main.cpp index 0b2445de9b..bdfd53c976 100644 --- a/libraries/tests/mbed/stdio/main.cpp +++ b/libraries/tests/mbed/stdio/main.cpp @@ -15,9 +15,8 @@ int main() { DigitalOut led1(LED1); DigitalOut led2(LED2); - union { - int value_int; - }; + int value_int; + notify_start(); // Just to sync with host test supervisor