Skip to content

Commit

Permalink
[hotfix][darwin-framework-tool] Add missing OTA delegate for per cont…
Browse files Browse the repository at this point in the history
…roller storage (#36269)
  • Loading branch information
vivien-apple authored Oct 28, 2024
1 parent 215cb5c commit 928efd7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@
intermediateCertificate:nil
rootCertificate:certificateIssuer.rootCertificate];
[params setOperationalCertificateIssuer:certificateIssuer queue:controllerStorageQueue];

__auto_type * otaDelegateQueue = dispatch_queue_create("com.chip.ota", DISPATCH_QUEUE_SERIAL_WITH_AUTORELEASE_POOL);
[params setOTAProviderDelegate:mOTADelegate queue:otaDelegateQueue];

params.productAttestationAuthorityCertificates = productAttestationAuthorityCertificates;

__auto_type * controller = [[MTRDeviceController alloc] initWithParameters:params error:&error];
Expand Down

0 comments on commit 928efd7

Please sign in to comment.