forked from Ivasoft/DSView
update: 'libsigrokdecode4DS' project used new log lib
This commit is contained in:
@@ -69,6 +69,7 @@ void AppControl::Destroy(){
|
||||
bool AppControl::Init()
|
||||
{
|
||||
sr_log_set_context(dsv_log_context());
|
||||
srd_log_set_context(dsv_log_context());
|
||||
|
||||
// Initialise libsigrok
|
||||
if (sr_init(&sr_ctx) != SR_OK)
|
||||
@@ -81,8 +82,6 @@ bool AppControl::Init()
|
||||
QString resdir = GetResourceDir();
|
||||
sr_set_firmware_resource_dir(resdir.toUtf8().data());
|
||||
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
//able run debug with qtcreator
|
||||
QString pythonHome = "c:/python";
|
||||
@@ -99,7 +98,7 @@ bool AppControl::Init()
|
||||
QString dir = GetDecodeScriptDir();
|
||||
strcpy(path, dir.toUtf8().data());
|
||||
|
||||
dsv_dbg("decode script path: \"%s\"", dir.toUtf8().data());
|
||||
dsv_info("decode script path: \"%s\"", dir.toUtf8().data());
|
||||
|
||||
// Initialise libsigrokdecode
|
||||
if (srd_init(path) != SRD_OK)
|
||||
|
||||
Reference in New Issue
Block a user