mirror of http://192.168.1.51:8099/lmh188/twain3.0
调整个别参数保存类型错误问题
This commit is contained in:
parent
fb79479a85
commit
788f1c5cf9
|
@ -396,8 +396,8 @@ std::vector<GScanCap> GscanJsonConfig::parseJsonFromString(const std::string str
|
||||||
itmEnSwitchFrontBack.Get(i, b_value);
|
itmEnSwitchFrontBack.Get(i, b_value);
|
||||||
cfp.is_switchfrontback = b_value ? 1 : 0;
|
cfp.is_switchfrontback = b_value ? 1 : 0;
|
||||||
|
|
||||||
itmBrtnes.Get(i, i_value);
|
itmBrtnes.Get(i, f_value);
|
||||||
cfp.brightness = i_value;
|
cfp.brightness = f_value;
|
||||||
itmAutoCrnt.Get(i, b_value);
|
itmAutoCrnt.Get(i, b_value);
|
||||||
cfp.is_autocontrast = b_value ? 1 : 0;
|
cfp.is_autocontrast = b_value ? 1 : 0;
|
||||||
itmContrast.Get(i, i_value);
|
itmContrast.Get(i, i_value);
|
||||||
|
@ -439,7 +439,7 @@ std::vector<GScanCap> GscanJsonConfig::parseJsonFromString(const std::string str
|
||||||
itmScrewDetct.Get(i, b_value);
|
itmScrewDetct.Get(i, b_value);
|
||||||
cfp.hardwarecaps.en_skrewdetect = b_value ? 1 : 0;
|
cfp.hardwarecaps.en_skrewdetect = b_value ? 1 : 0;
|
||||||
itmScrewLevel.Get(i, i_value);
|
itmScrewLevel.Get(i, i_value);
|
||||||
cfp.hardwarecaps.skrewdetectlevel = i_value ? 1 : 0;
|
cfp.hardwarecaps.skrewdetectlevel = i_value;
|
||||||
|
|
||||||
if (!root["Config"][ITEMCAPTION].IsEmpty())
|
if (!root["Config"][ITEMCAPTION].IsEmpty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue