xref: /OK3568_Linux_fs/buildroot/package/weston/0034-touch-calibrator-Ignore-verify-errors.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 5c36d54cab50b736daf1b15c779b3a611e985e77 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Fri, 16 Oct 2020 12:19:44 +0800
4Subject: [PATCH 34/93] touch-calibrator: Ignore verify errors
5
6Print warnings instead, this is useful when emulating a small screen.
7
8Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
9---
10 clients/touch-calibrator.c | 3 ++-
11 1 file changed, 2 insertions(+), 1 deletion(-)
12
13diff --git a/clients/touch-calibrator.c b/clients/touch-calibrator.c
14index 04a966b..815b89a 100644
15--- a/clients/touch-calibrator.c
16+++ b/clients/touch-calibrator.c
17@@ -854,7 +854,8 @@ calibrator_run(struct calibrator *cal)
18 		return CAL_EXIT_ERROR;
19
20 	if (verify_calibration(cal, result) < 0)
21-		return CAL_EXIT_ERROR;
22+		//return CAL_EXIT_ERROR;
23+		pr_ver("Ignoring verify errors.\n");
24
25 	pr_ver("Calibration values:");
26 	for (i = 0; i < 6; i++)
27--
282.20.1
29
30