Skip to content

Commit

Permalink
update for latest SwiftOCA
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Aug 1, 2023
1 parent a548ff0 commit 9938b4c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
{
"identity" : "mom",
"kind" : "remoteSourceControl",
"location" : "git@github.com:PADL/MOM.git",
"location" : "https://github.com/PADL/MOM.git",
"state" : {
"branch" : "main",
"revision" : "7279e08df56c540b05de18932fe2c2f1cba9f4f1"
"revision" : "4128aa9d0d915bf380c2fdd7e1040f8eec98193f"
}
},
{
Expand Down Expand Up @@ -57,10 +57,10 @@
{
"identity" : "swiftoca",
"kind" : "remoteSourceControl",
"location" : "git@github.com:PADL/SwiftOCA.git",
"location" : "https://github.com/PADL/SwiftOCA.git",
"state" : {
"branch" : "main",
"revision" : "8fdb2c98bc4629621d76af94afe6d0780ea8f276"
"revision" : "310906ea50da1a14cb35d4913f1773919b7b781b"
}
}
],
Expand Down
4 changes: 2 additions & 2 deletions Sources/MOMOCABridge/ControlClasses/MOMButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protocol MOMKeyProtocol: MOMPanelControl {
}

extension MOMKeyProtocol {
func notifyKeyDownUp(from controller: AES70OCP1Controller) async {
func notifyKeyDownUp(from controller: AES70Controller) async {
guard let bridge else { return }
var params: [Int] = [MOMStatus.success.rawValue, keyID.rawValue, 0]
params[2] = 1 // key down
Expand Down Expand Up @@ -76,7 +76,7 @@ class MOMButton: SwiftOCADevice.OcaBooleanActuator, MOMKeyProtocol {

override open func handleCommand(
_ command: Ocp1Command,
from controller: AES70OCP1Controller
from controller: AES70Controller
) async throws -> Ocp1Response {
do {
return try await handleCommonMomCommand(command, from: controller)
Expand Down
2 changes: 1 addition & 1 deletion Sources/MOMOCABridge/ControlClasses/MOMExternalKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class MOMExternalKey: SwiftOCADevice.OcaBooleanActuator, MOMKeyProtocol {

override open func handleCommand(
_ command: Ocp1Command,
from controller: AES70OCP1Controller
from controller: AES70Controller
) async throws -> Ocp1Response {
do {
return try await handleCommonMomCommand(command, from: controller)
Expand Down
2 changes: 1 addition & 1 deletion Sources/MOMOCABridge/ControlClasses/MOMGainControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MOMSteppedGainControl: SwiftOCADevice.OcaGain, MOMPanelControl {

override open func handleCommand(
_ command: Ocp1Command,
from controller: AES70OCP1Controller
from controller: AES70Controller
) async throws -> Ocp1Response {
do {
return try await handleCommonMomCommand(command, from: controller)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MOMIdentificationSensor: SwiftOCADevice.OcaIdentificationSensor, MOMPanelC

override open func handleCommand(
_ command: Ocp1Command,
from controller: AES70OCP1Controller
from controller: AES70Controller
) async throws -> Ocp1Response {
do {
return try await handleCommonMomCommand(command, from: controller)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class MOMLayerIndicator: SwiftOCADevice.OcaUint8Sensor, MOMPanelControl {

override open func handleCommand(
_ command: Ocp1Command,
from controller: AES70OCP1Controller
from controller: AES70Controller
) async throws -> Ocp1Response {
do {
return try await handleCommonMomCommand(command, from: controller)
Expand Down
6 changes: 3 additions & 3 deletions Sources/MOMOCABridge/ControlClasses/MOMPanel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extension MOMPanelControl {
}
}

func ensureWritableAndConnectedToDadMan(_ controller: AES70OCP1Controller) async throws {
func ensureWritableAndConnectedToDadMan(_ controller: AES70Controller) async throws {
guard let bridge else { return }
try await ensureWritable(by: controller)
try await bridge.ensureConnectedToDadMan()
Expand All @@ -41,7 +41,7 @@ extension MOMPanelControl {
// shared command implementations between MOM worker classes
func handleCommonMomCommand(
_ command: Ocp1Command,
from controller: AES70OCP1Controller
from controller: AES70Controller
) async throws -> Ocp1Response {
switch command.methodID {
case OcaMethodID("2.1"): // GetEnabled()
Expand Down Expand Up @@ -104,7 +104,7 @@ class MOMPanel: SwiftOCADevice.OcaBlock<SwiftOCADevice.OcaWorker>, MOMPanelContr

override open func handleCommand(
_ command: Ocp1Command,
from controller: AES70OCP1Controller
from controller: AES70Controller
) async throws -> Ocp1Response {
do {
return try await handleCommonMomCommand(command, from: controller)
Expand Down

0 comments on commit 9938b4c

Please sign in to comment.