From 0a74c621ff343c337c78a636b4eff3866292ef60 Mon Sep 17 00:00:00 2001
From: liuzhilin <liuzhilin@uniontech.com>
Date: Tue, 2 Apr 2024 17:15:55 +0800
Subject: [PATCH] fix-build-error-ddcutil2.0

---
 bin/backlight_helper/ddcci/ddcci.go | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/bin/backlight_helper/ddcci/ddcci.go b/bin/backlight_helper/ddcci/ddcci.go
index 2165345..302fe73 100644
--- a/bin/backlight_helper/ddcci/ddcci.go
+++ b/bin/backlight_helper/ddcci/ddcci.go
@@ -103,11 +103,6 @@ func newDDCCI() (*ddcci, error) {
 		displayHandleMap: make(map[string]*displayHandle),
 	}
 
-	status := C.ddca_set_max_tries(C.DDCA_MULTI_PART_TRIES, 5)
-	if status < C.int(0) {
-		return nil, fmt.Errorf("brightness: Error setting retries: %d", status)
-	}
-
 	err := ddc.RefreshDisplays()
 	if err != nil {
 		return nil, err
-- 
2.39.3

