Commit fc953250 by jackalone

优化打印机代码

parent 6ac3f9d3
......@@ -48,11 +48,9 @@ int FMPPrinterPrivate::Uninit()
bool FMPPrinterPrivate::_DoPrint(QString data)
{
qDebug()<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`";
QLOG_INFO() <<"receive data is"<<data;
if(FM_LoadAddress() && FM_inItConfig())
QLOG_INFO() <<QString(GB2312ToUnicode("初始化打印机配置成功"));
//FMP_INFO() << "receive data is"<<data;
QLOG_INFO() <<"receive data is"<<data;
char m_data[2048]={0};
switch (m_print.m_PrintType)
......@@ -86,18 +84,18 @@ bool FMPPrinterPrivate::_DoPrint(QString data)
}
break;
default:
#if 0
if(GetInfo(m_print.printname,data))
{
//FMP_INFO() << "print is ok";
QLOG_INFO()<< "print is ok";
return 1;
}
else
{
// FMP_INFO() << "print is false";
QLOG_INFO()<< "print is false";
return 0;
}
#endif
break;
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment