From ff80fb16f4428c3fdc3ea82fa02453ce21170fbe Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Wed, 24 May 2017 13:42:32 -0700 Subject: [PATCH] Change/fix few remaining `kThreadError` (referenced in comments) to `OT_ERROR`. (#1822) --- include/openthread/openthread.h | 6 +++--- src/ncp/ncp_spi.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/openthread/openthread.h b/include/openthread/openthread.h index 950b76d8e..63a028db5 100644 --- a/include/openthread/openthread.h +++ b/include/openthread/openthread.h @@ -154,11 +154,11 @@ extern "C" { OTAPI const char *OTCALL otGetVersionString(void); /** - * This function converts a otError enum into a string. + * This function converts an otError enum into a string. * - * @param[in] aError A otError enum. + * @param[in] aError An otError enum. * - * @returns A string representation of a ThreadError. + * @returns A string representation of an otError. * */ OTAPI const char *OTCALL otThreadErrorToString(otError aError); diff --git a/src/ncp/ncp_spi.cpp b/src/ncp/ncp_spi.cpp index 65bc4c015..1042bc5a9 100644 --- a/src/ncp/ncp_spi.cpp +++ b/src/ncp/ncp_spi.cpp @@ -359,7 +359,7 @@ void NcpSpi::HandleRxFrame(void) otPlatSpiSlavePrepareTransaction(mEmptySendFrameFullAccept, kSpiHeaderLength, mReceiveFrame, sizeof(mReceiveFrame), false); - // No need to check the error status. Getting `kThreadError_Busy` + // No need to check the error status. Getting `OT_ERROR_BUSY` // is OK as everything will be set up properly from callback when // the current transaction is completed. }