Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit de3ca7f

Browse files
authored
Merge pull request #438 from openweave/bug/emargolis/communicationerror_spelling_typo
Fixed spelling typo in CommunicationError
2 parents f5bf81f + e0c3110 commit de3ca7f

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

src/adaptations/device-layer/ServiceProvisioningServer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ void ServiceProvisioningServer::HandlePairDeviceToAccountResult(WEAVE_ERROR err,
358358
if (err == WEAVE_ERROR_TIMEOUT)
359359
{
360360
statusReportProfileId = kWeaveProfile_ServiceProvisioning;
361-
statusReportStatusCode = Profiles::ServiceProvisioning::kStatusCode_ServiceCommuncationError;
361+
statusReportStatusCode = Profiles::ServiceProvisioning::kStatusCode_ServiceCommunicationError;
362362
}
363363
else
364364
{
@@ -404,7 +404,7 @@ void ServiceProvisioningServer::HandleProvServiceBindingEvent(void * appState, B
404404
else
405405
{
406406
statusReportProfileId = kWeaveProfile_ServiceProvisioning;
407-
statusReportStatusCode = Profiles::ServiceProvisioning::kStatusCode_ServiceCommuncationError;
407+
statusReportStatusCode = Profiles::ServiceProvisioning::kStatusCode_ServiceCommunicationError;
408408
}
409409
sInstance.HandlePairDeviceToAccountResult(inParam.PrepareFailed.Reason,
410410
statusReportProfileId, statusReportStatusCode);

src/lib/profiles/echo/Next/WeaveEchoClient.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ WEAVE_ERROR WeaveEchoClient::DoSend(bool callbackOnError)
400400
err = armTimerErr;
401401
}
402402

403-
// If needed, deliver a CommuncationError API event to the application. Note that this may result
403+
// If needed, deliver a CommunicationError API event to the application. Note that this may result
404404
// in the state of the client object changing (e.g. as a result of the application calling Stop()).
405405
// So the code here shouldn't presume anything about the current state after the callback.
406406
if (err != WEAVE_NO_ERROR)
@@ -503,7 +503,7 @@ void WeaveEchoClient::CancelSendTimer()
503503
}
504504

505505
/**
506-
* Deliver a CommuncationError API event to the application.
506+
* Deliver a CommunicationError API event to the application.
507507
*/
508508
void WeaveEchoClient::DeliverCommunicationError(WEAVE_ERROR err)
509509
{
@@ -512,11 +512,11 @@ void WeaveEchoClient::DeliverCommunicationError(WEAVE_ERROR err)
512512

513513
inParam.Clear();
514514
inParam.Source = this;
515-
inParam.CommuncationError.Reason = err;
515+
inParam.CommunicationError.Reason = err;
516516

517517
outParam.Clear();
518518

519-
mEventCallback(AppState, kEvent_CommuncationError, inParam, outParam);
519+
mEventCallback(AppState, kEvent_CommunicationError, inParam, outParam);
520520
}
521521

522522
/**
@@ -551,7 +551,7 @@ void WeaveEchoClient::HandleBindingEvent(void * const appState, const Binding::E
551551

552552
// If SendRepeating mode is enabled arm the send timer. When the timer fires another
553553
// attempt will be made to prepare the binding.
554-
// Otherwise, if SendRepeating mode is NOT enabled, deliver a CommuncationError API
554+
// Otherwise, if SendRepeating mode is NOT enabled, deliver a CommunicationError API
555555
// event to the application.
556556
if (client->GetFlag(kFlag_SendRepeating))
557557
{

src/lib/profiles/echo/Next/WeaveEchoClient.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ using namespace ::nl::Weave;
108108
* An EchoResponse message was received from the peer. Arguments to the event contain the response
109109
* payload and meta-information about the response message.
110110
*
111-
* ### CommuncationError
111+
* ### CommunicationError
112112
*
113113
* An error occurred while forming or sending an EchoRequest, or while waiting for a response.
114114
* Examples of errors that can occur while waiting for a response are key errors or unexpected close
@@ -153,7 +153,7 @@ class NL_DLL_EXPORT WeaveEchoClient
153153
kEvent_PreparePayload = 1, /**< The application is requested to prepare the payload for the Echo request. */
154154
kEvent_RequestSent = 2, /**< An EchoRequest message was sent to the peer. */
155155
kEvent_ResponseReceived = 3, /**< An EchoResponse message was received from the peer. */
156-
kEvent_CommuncationError = 4, /**< A communication error occurred while sending an EchoRequest or waiting for a response. */
156+
kEvent_CommunicationError = 4, /**< A communication error occurred while sending an EchoRequest or waiting for a response. */
157157
kEvent_ResponseTimeout = 5, /**< An EchoResponse was not received in the alloted time. */
158158
kEvent_RequestAborted = 6, /**< An in-progress Echo exchange was aborted because a request was made to start another exchange. */
159159

@@ -246,7 +246,7 @@ struct WeaveEchoClient::InEventParam
246246
struct
247247
{
248248
WEAVE_ERROR Reason; /**< The error code associated with the communication failure. */
249-
} CommuncationError;
249+
} CommunicationError;
250250

251251
struct
252252
{

src/lib/profiles/service-provisioning/ServiceProvisioning.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ enum
6262
kStatusCode_PairingServerError = 5, /**< The device could not complete service pairing because it failed to talk to the pairing server. */
6363
kStatusCode_InvalidPairingToken = 6, /**< The device could not complete service pairing because it passed an invalid pairing token. */
6464
kStatusCode_PairingTokenOld = 7, /**< The device could not complete service pairing because the pairing token it passed has expired. */
65-
kStatusCode_ServiceCommuncationError = 8, /**< The device could not complete service pairing because it encountered an error when communicating with the service. */
65+
kStatusCode_ServiceCommunicationError = 8, /**< The device could not complete service pairing because it encountered an error when communicating with the service. */
6666
kStatusCode_ServiceConfigTooLarge = 9, /**< The specified service configuration is too large. */
6767
kStatusCode_WrongFabric = 10, /**< Device paired with a different fabric. */
6868
kStatusCode_TooManyFabrics = 11 /**< Too many fabrics in the structure. */

src/lib/support/StatusReportStr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ NL_DLL_EXPORT const char *StatusReportStr(uint32_t profileId, uint16_t statusCod
287287
case ServiceProvisioning::kStatusCode_PairingServerError : fmt = "[ ServiceProvisioning(%08" PRIX32 "):%" PRIu16 " ] Error talking to pairing server"; break;
288288
case ServiceProvisioning::kStatusCode_InvalidPairingToken : fmt = "[ ServiceProvisioning(%08" PRIX32 "):%" PRIu16 " ] Invalid pairing token"; break;
289289
case ServiceProvisioning::kStatusCode_PairingTokenOld : fmt = "[ ServiceProvisioning(%08" PRIX32 "):%" PRIu16 " ] Pairing token no longer valid"; break;
290-
case ServiceProvisioning::kStatusCode_ServiceCommuncationError : fmt = "[ ServiceProvisioning(%08" PRIX32 "):%" PRIu16 " ] Service communication error"; break;
290+
case ServiceProvisioning::kStatusCode_ServiceCommunicationError : fmt = "[ ServiceProvisioning(%08" PRIX32 "):%" PRIu16 " ] Service communication error"; break;
291291
case ServiceProvisioning::kStatusCode_ServiceConfigTooLarge : fmt = "[ ServiceProvisioning(%08" PRIX32 "):%" PRIu16 " ] Service configuration too large"; break;
292292
case ServiceProvisioning::kStatusCode_WrongFabric : fmt = "[ ServiceProvisioning(%08" PRIX32 "):%" PRIu16 " ] Wrong fabric"; break;
293293
case ServiceProvisioning::kStatusCode_TooManyFabrics : fmt = "[ ServiceProvisioning(%08" PRIX32 "):%" PRIu16 " ] Too many fabrics"; break;

src/test-apps/TestStatusReportStr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static struct Profile_Status sContext[] = {
246246
ServiceProvisioning::kStatusCode_PairingServerError,
247247
ServiceProvisioning::kStatusCode_InvalidPairingToken,
248248
ServiceProvisioning::kStatusCode_PairingTokenOld,
249-
ServiceProvisioning::kStatusCode_ServiceCommuncationError,
249+
ServiceProvisioning::kStatusCode_ServiceCommunicationError,
250250
ServiceProvisioning::kStatusCode_ServiceConfigTooLarge,
251251
ServiceProvisioning::kStatusCode_WrongFabric,
252252
ServiceProvisioning::kStatusCode_TooManyFabrics,

0 commit comments

Comments
 (0)