Skip to content

Commit c5c8bf1

Browse files
authored
DDC support for high-end M2 (Pro/Max/Ultra) systems (MonitorControl#1404)
1 parent be1f2e3 commit c5c8bf1

File tree

5 files changed

+119
-141
lines changed

5 files changed

+119
-141
lines changed

.swiftlint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ disabled_rules:
33
- function_body_length
44
- identifier_name
55
- trailing_comma
6+
- large_tuple
67
type_body_length: 500
78
file_length: 750
89
cyclomatic_complexity:
910
ignores_case_statements: true
1011
opening_brace:
1112
allow_multiline_func: true
1213
excluded:
13-
- .build
14+
- .build

MonitorControl/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
22-
<string>7036</string>
22+
<string>7045</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.utilities</string>
2525
<key>LSMinimumSystemVersion</key>

MonitorControl/Model/OtherDisplay.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,9 @@ class OtherDisplay: Display {
431431
}
432432
DisplayManager.shared.globalDDCQueue.sync {
433433
if let unwrappedDelay = delay {
434-
values = Arm64DDC.read(service: self.arm64avService, command: controlCode, tries: UInt8(min(tries, 255)), minReplyDelay: UInt32(unwrappedDelay / 1000))
434+
values = Arm64DDC.read(service: self.arm64avService, command: controlCode, readSleepTime: UInt32(unwrappedDelay / 1000), numOfRetryAttemps: UInt8(min(tries, 255)))
435435
} else {
436-
values = Arm64DDC.read(service: self.arm64avService, command: controlCode, tries: UInt8(min(tries, 255)))
436+
values = Arm64DDC.read(service: self.arm64avService, command: controlCode, numOfRetryAttemps: UInt8(min(tries, 255)))
437437
}
438438
}
439439
} else {

0 commit comments

Comments
 (0)