2
0
forked from Ivasoft/DSView

fix minor issues

This commit is contained in:
DreamSourceLab
2015-05-08 16:10:19 +08:00
parent a887a7f35d
commit c43d934155
6 changed files with 5 additions and 10 deletions

View File

@@ -40,8 +40,6 @@
#include "config.h"
char decoders_path[256];
void usage()
{
fprintf(stdout,
@@ -122,11 +120,6 @@ int main(int argc, char *argv[])
do {
#ifdef ENABLE_DECODE
QDir dir(QCoreApplication::applicationDirPath());
assert(dir.cd("decoders"));
std::string str = dir.absolutePath().toStdString() + "/";
strcpy(decoders_path, str.c_str());
// Initialise libsigrokdecode
if (srd_init(NULL) != SRD_OK) {
qDebug() << "ERROR: libsigrokdecode init failed.";