Skip to content

Commit

Permalink
[Darwin]set skipCommissioningComplete to boolean value and append MTR…
Browse files Browse the repository at this point in the history
…_NEWLY_AVAILABLE annotation
  • Loading branch information
robinmo committed Apr 25, 2023
1 parent b15814d commit e034b52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRCommissioningParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ NS_ASSUME_NONNULL_BEGIN
* Only perform the PASE steps of commissioning.
* Commissioning will be completed by another admin on the network.
*/
@property (nonatomic, copy, nullable) NSNumber * skipCommissioningComplete;
@property (nonatomic, assign) BOOL skipCommissioningComplete MTR_NEWLY_AVAILABLE;

@end

Expand Down
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRDeviceController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ - (BOOL)commissionNodeWithID:(NSNumber *)nodeID
params.SetThreadOperationalDataset(AsByteSpan(commissioningParams.threadOperationalDataset));
}
if (commissioningParams.skipCommissioningComplete) {
params.SetSkipCommissioningComplete(commissioningParams.skipCommissioningComplete.boolValue);
params.SetSkipCommissioningComplete(commissioningParams.skipCommissioningComplete);
}
if (commissioningParams.wifiSSID) {
chip::ByteSpan ssid = AsByteSpan(commissioningParams.wifiSSID);
Expand Down

0 comments on commit e034b52

Please sign in to comment.