设备日志返回值

This commit is contained in:
13038267101 2023-05-20 18:07:32 +08:00
parent 9bc22b1f13
commit 94fe51b495
1 changed files with 4 additions and 3 deletions

View File

@ -2442,9 +2442,10 @@ int hg_scanner::setting_get_devs_log(void* data, long* len)
return SCANNER_ERR_NO_DATA;
}
string str;
get_device_log(str);
strcpy((char*)data, str.c_str());
return 0;
int ret = get_device_log(str);
if(ret == SCANNER_ERR_OK)
strcpy((char*)data, str.c_str());
return ret;
}
int hg_scanner::on_color_mode_changed(int& color_mode)
{