We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f99be0 commit 09e5e2aCopy full SHA for 09e5e2a
1 file changed
MonitorControl/Model/ExternalDisplay.swift
@@ -286,8 +286,13 @@ class ExternalDisplay: Display {
286
return self.arm64ddcComm(send: &send, reply: &reply)
287
288
#else
289
-
290
- return self.ddc?.write(command: command, value: value, errorRecoveryWaitTime: 2000)
+ // NOTE: Loop is a hacky workaround that should probably be removed as it wasn't necessary before and makes things choppy.
+ // SEE: https://github.com/MonitorControl/MonitorControl/issues/478
291
+ var success = false
292
+ for _ in 1 ... 2 {
293
+ success = self.ddc?.write(command: command, value: value, errorRecoveryWaitTime: 2000) ?? false
294
+ }
295
+ return success
296
297
#endif
298
}
0 commit comments