Skip to content

Commit

Permalink
initializeDefaultObjects() call at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Jan 27, 2024
1 parent cc6f66b commit 57aff32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"location" : "https://github.com/PADL/SwiftOCA.git",
"state" : {
"branch" : "main",
"revision" : "fd095a58d7d3ebcd1e011f56779a53b9bf49e6ba"
"revision" : "d935fd7fdc2b0b97dab278f2cc26a7310ad651c0"
}
},
{
Expand Down
2 changes: 2 additions & 0 deletions Sources/MOMOCABridge/MOMOCABridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public actor MOMOCABridge {
localAddressData = Data(bytes: bytes.baseAddress!, count: bytes.count)
}

try await device.initializeDefaultObjects()

endpoint = try await Ocp1DeviceEndpoint(address: localAddressData, device: device)
panel = try await MOMPanel(bridge: self)

Expand Down

0 comments on commit 57aff32

Please sign in to comment.