aboutsummaryrefslogtreecommitdiff
path: root/graphics/epsonscan2/files/patch-src_ScanSDK_Src_SDK_supervisor.cpp
blob: 41b8705ff648646d7ddfd028ad9e938fd55a3a03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- src/ScanSDK/Src/SDK/supervisor.cpp.orig	2024-09-12 07:10:37 UTC
+++ src/ScanSDK/Src/SDK/supervisor.cpp
@@ -284,7 +284,7 @@ bool Supervisor::CheckScanningError(SDIError outError)
 }
 bool Supervisor::CheckScanningError(SDIError outError)
 {
-    if(outEventType == 10 ){
+    if(outEventType == (SDITransferEventType)10 ){
         if(outError != kSDIErrorNone){
             m_LastError = outError;
             return false;
@@ -2627,7 +2627,7 @@ bool Supervisor::Set_All_Value(void)
         }
         {
             SDIInt current;
-            if(device_data.ScanArea.FixedSize == USER_DEFINE){
+            if(device_data.ScanArea.FixedSize == (DocumentSize)USER_DEFINE){
                 current = device_data.ScanArea.PaperEndDetection.select;
             }else {
                 current = false;
@@ -3607,7 +3607,7 @@ bool Supervisor::Set_Exclusion_Value(void)
         }
         {
             SDIInt current;
-            if(device_data.ScanArea.FixedSize == USER_DEFINE){
+            if(device_data.ScanArea.FixedSize == (DocumentSize)USER_DEFINE){
                 current = device_data.ScanArea.PaperEndDetection.select;
             }else {
                 current = false;