mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
Update DDC.swift.
This commit is contained in:
parent
bd1d43ed61
commit
c8608b130c
4 changed files with 5 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
github "reitermarkus/DDC.swift" "5a65265a638313fcb39daab3b2d1c9fd16a99263"
|
||||
github "reitermarkus/DDC.swift" "a29f1975f46745580990269a3dc26873737f24bb"
|
||||
github "rnine/AMCoreAudio" "3.2.1"
|
||||
github "shpakovski/MASPreferences" "1.3"
|
||||
github "the0neyouseek/MediaKeyTap" "abfe09f53ccabb1aa14a0f4ab99cfb8812f41919"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.5.1</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>272</string>
|
||||
<string>289</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class Utils: NSObject {
|
|||
}
|
||||
}
|
||||
|
||||
var values: (UInt8, UInt8)?
|
||||
var values: (UInt16, UInt16)?
|
||||
|
||||
if display.needsLongerDelay {
|
||||
values = display.ddc?.read(command: command, tries: 10, minReplyDelay: UInt64(20 * kMillisecondScale))
|
||||
|
|
@ -48,7 +48,7 @@ class Utils: NSObject {
|
|||
values = display.ddc?.read(command: command, tries: 10)
|
||||
}
|
||||
|
||||
let (currentValue, maxValue) = values ?? (UInt8(display.getValue(for: command)), UInt8(display.getMaxValue(for: command)))
|
||||
let (currentValue, maxValue) = values ?? (UInt16(display.getValue(for: command)), UInt16(display.getMaxValue(for: command)))
|
||||
|
||||
display.saveValue(Int(currentValue), for: command)
|
||||
display.saveMaxValue(Int(maxValue), for: command)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.5.1</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>272</string>
|
||||
<string>289</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSBackgroundOnly</key>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue