添加debug重定向,添加命令行
This commit is contained in:
14
main.cpp
14
main.cpp
@@ -1,5 +1,4 @@
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QString>
|
||||
#include <QDebug>
|
||||
@@ -11,7 +10,8 @@
|
||||
#include "prot/prot_m4.h"
|
||||
#include "prot/prot_pc.h"
|
||||
#include "prot/prot_slave.h"
|
||||
|
||||
#include "prot/prot_cmdline.h"
|
||||
#include "base/debug.h"
|
||||
|
||||
|
||||
|
||||
@@ -22,11 +22,19 @@ int main(int argc, char *argv[])
|
||||
QApplication app(argc, argv);
|
||||
MainWindow w;
|
||||
// w.show();
|
||||
syscfg();
|
||||
mycfg *cfg=syscfg();
|
||||
|
||||
if(cfg->log_redirect=="file"){
|
||||
mydebug_init("debug");
|
||||
}else{
|
||||
mydebug_init();
|
||||
}
|
||||
|
||||
check_plan();
|
||||
prot_m4 *m4=protM4();
|
||||
protPc();
|
||||
protSlave();
|
||||
command_start();
|
||||
|
||||
// 获取m4的编译时间
|
||||
m4->set_irq_fun([=](myarray data){
|
||||
|
Reference in New Issue
Block a user