3399设备增加固件升级失败的返回值

This commit is contained in:
yangjiaxuan 2023-11-10 15:26:05 +08:00
parent 57814455dc
commit 70fc147c6e
1 changed files with 4 additions and 0 deletions

View File

@ -2125,6 +2125,10 @@ int hg_scanner_239::set_firmware_upgrade(std::string filename)
{
return ret;
}
if (val == 1)
{
return SCANNER_ERR_DEVICE_UPGRADE_FAIL;
}
if (val == 2)
{
int ret = read_register(setting3399::SR_UPDATA_REBOOT, &val);