t

Fork of mbed-dev by mbed official

Revision:
162:e13f6fdb2ac4
Parent:
160:d5399cc887bb
diff -r 2cc1468da177 -r e13f6fdb2ac4 platform/mbed_semihost_api.c
--- a/platform/mbed_semihost_api.c	Thu Mar 30 13:45:57 2017 +0100
+++ b/platform/mbed_semihost_api.c	Wed Apr 12 16:21:43 2017 +0100
@@ -152,10 +152,11 @@
 #endif
 
 int semihost_disabledebug(void) {
+    uint32_t args[1];
 #if !(DEVICE_DEBUG_AWARENESS)
     is_debugger_attached = 0;
 #endif
-    return __semihost(USR_DISABLEDEBUG, NULL);
+    return __semihost(USR_DISABLEDEBUG, &args);
 }
 
 #endif