Skip to content

Commit cb4e055

Browse files
authored
Merge pull request #4101 from adamgreen/fixDisableDebugToSupportMoreInterfaceFirmwareRevs
Modify semihost_disabledebug() to support more interface FW revs
2 parents 14eadf3 + 408cff4 commit cb4e055

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform/mbed_semihost_api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,11 @@ int semihost_connected(void) {
152152
#endif
153153

154154
int semihost_disabledebug(void) {
155+
uint32_t args[1];
155156
#if !(DEVICE_DEBUG_AWARENESS)
156157
is_debugger_attached = 0;
157158
#endif
158-
return __semihost(USR_DISABLEDEBUG, NULL);
159+
return __semihost(USR_DISABLEDEBUG, &args);
159160
}
160161

161162
#endif

0 commit comments

Comments
 (0)