调整个别参数保存类型错误问题

This commit is contained in:
lovelyyoung 2020-07-07 09:53:32 +08:00
parent fb79479a85
commit 788f1c5cf9
1 changed files with 3 additions and 3 deletions

View File

@ -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())
{ {