mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
Reduce tries to 10.
This commit is contained in:
parent
7d5c11be45
commit
b33f14e332
2 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
github "reitermarkus/DDC.swift" "1d77f606f0f155feb634b5458455e90c00daf887"
|
||||
github "reitermarkus/DDC.swift" "7bd93348e66df3d57b306cc48c56c1c7c5bf5141"
|
||||
github "rnine/AMCoreAudio" "3.2.1"
|
||||
github "shpakovski/MASPreferences" "1.3"
|
||||
github "the0neyouseek/MediaKeyTap" "abfe09f53ccabb1aa14a0f4ab99cfb8812f41919"
|
||||
|
|
|
|||
|
|
@ -43,9 +43,9 @@ class Utils: NSObject {
|
|||
var values: (UInt8, UInt8)?
|
||||
|
||||
if display.needsLongerDelay {
|
||||
values = display.ddc?.read(command: command, tries: 100, minReplyDelay: UInt64(30 * kMillisecondScale))
|
||||
values = display.ddc?.read(command: command, tries: 10, minReplyDelay: UInt64(20 * kMillisecondScale))
|
||||
} else {
|
||||
values = display.ddc?.read(command: command, tries: 100)
|
||||
values = display.ddc?.read(command: command, tries: 10)
|
||||
}
|
||||
|
||||
let (currentValue, maxValue) = values ?? (UInt8(display.getValue(for: command)), UInt8(display.getMaxValue(for: command)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue