5337e3e6d8
Fix compilation error for "if (a <= b <= c)". While here: - Replace PORTVERSION with DISTVERSION. - Move dependency from boost to BUILD_DEPENDS - the port is not linked with boost libs, but uses includes during build. - Remove unnecessary "CFLAGS+=". PR: 294951 Sponsored by: UNIS Labs Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org> MFH: 2026Q2
21 lines
1.2 KiB
C++
21 lines
1.2 KiB
C++
--- src/ScanSDK/Src/SDK/ScanMgr.cpp.orig 2024-09-12 07:10:37 UTC
|
|
+++ src/ScanSDK/Src/SDK/ScanMgr.cpp
|
|
@@ -298,7 +298,7 @@ BOOL CScanMgr::setSettingParameter(const eSpecifiedPar
|
|
switch (SpecifiedParameter)
|
|
{
|
|
case SP_SLEEP_TIMER:
|
|
- if (m_sv->device_data.SleepTime.capability.minValue <= setparam <= m_sv->device_data.SleepTime.capability.maxValue){
|
|
+ if (m_sv->device_data.SleepTime.capability.minValue <= setparam && setparam <= m_sv->device_data.SleepTime.capability.maxValue){
|
|
m_sv->device_data.SleepTime.select = setparam;
|
|
parameter_exist = TRUE;
|
|
SDI_TRACE_LOG("[INFO]setSettingParameter SleepTime set: %d", m_sv->device_data.SleepTime.select);
|
|
@@ -316,7 +316,7 @@ BOOL CScanMgr::setSettingParameter(const eSpecifiedPar
|
|
}
|
|
}
|
|
}else{
|
|
- if (m_sv->device_data.AutoPowerOffTime.capability.minValue <= setparam <= m_sv->device_data.AutoPowerOffTime.capability.maxValue){
|
|
+ if (m_sv->device_data.AutoPowerOffTime.capability.minValue <= setparam && setparam <= m_sv->device_data.AutoPowerOffTime.capability.maxValue){
|
|
m_sv->device_data.AutoPowerOffTime.select = setparam;
|
|
parameter_exist = TRUE;
|
|
SDI_TRACE_LOG("[INFO]setSettingParameter AutoPowerOffTime set: %d", m_sv->device_data.AutoPowerOffTime.select);
|