Fix interface name of can device sandbox/wanglu/settings-with-touch-recorder
authorzhou_xin <zhou_xin@dl.cn.nexty-ele.com>
Sat, 2 Mar 2019 05:55:46 +0000 (13:55 +0800)
committerzhou_xin <zhou_xin@dl.cn.nexty-ele.com>
Sat, 2 Mar 2019 05:55:46 +0000 (13:55 +0800)
app/logfile/logplay.cpp
app/logfile/logsave.cpp

index 53febea..ee1db7e 100644 (file)
@@ -242,7 +242,7 @@ void LogPlayImpl::setCANProperty(int index, QString port, QString stime, QString
 {
     if(index > 0 && index < datas.size())
     {
-        playUtilsArg["-p"] = "vcan0="+port;
+        playUtilsArg["-p"] = "slcan0="+port;
         playUtilsArg["-I"] = datas[index][pathRole].toString();
     }
 }
index 3482cba..b395fdf 100644 (file)
@@ -144,7 +144,7 @@ bool LogSaveImpl::saveStart(bool can, bool touch, bool video, bool audio)
             fd = open(dumpUtilsArg["-L"].toStdString().c_str(), O_CREAT | O_WRONLY, 0666);
             dup2(fd, 1);
             close(fd);     /* fd は以後不要なので close() */
-            execl(DumpUtilsExec.c_str(), basename(DumpUtilsExec.c_str()), "vcan0", "-L", (char *)NULL);
+            execl(DumpUtilsExec.c_str(), basename(DumpUtilsExec.c_str()), "slcan0", "-L", (char *)NULL);
             break;
         default:
             break;