[factory-diags] fix usage of OPENTHREAD_RADIO (#9736)

This commit is contained in:
Jonathan Hui
2023-12-20 11:32:00 -08:00
committed by GitHub
parent 55cc30b482
commit 1d126effb9
+1 -1
View File
@@ -846,7 +846,7 @@ Error Diags::ProcessCmd(uint8_t aArgsLength, char *aArgs[], char *aOutput, size_
// This `rcp` command is for debugging and testing only, building only when NDEBUG is not defined
// so that it will be excluded from release build.
#if !defined(NDEBUG) && defined(OPENTHREAD_RADIO)
#if OPENTHREAD_RADIO && !defined(NDEBUG)
if (aArgsLength > 0 && !strcmp(aArgs[0], "rcp"))
{
aArgs++;