summaryrefslogtreecommitdiff
path: root/qpsxserial.cpp
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2018-06-12 23:08:23 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2018-06-12 23:08:23 +0200
commit76bfdf2712f64ce645ee4b3b60876c0e69806761 (patch)
tree1096b8ddecb98f17caafd32d9b02d7719051587e /qpsxserial.cpp
parent1c3712dfa33757b11ff9b3082903e92f038e7b3d (diff)
+ Added project file.
* Minor changes.
Diffstat (limited to 'qpsxserial.cpp')
-rw-r--r--qpsxserial.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/qpsxserial.cpp b/qpsxserial.cpp
index 0da333c..8e774e3 100644
--- a/qpsxserial.cpp
+++ b/qpsxserial.cpp
@@ -17,6 +17,7 @@ QPSXSerial::QPSXSerial(QWidget *parent, APP_INTERFACE interface) :
lost_packet_timer = new QTimer();
+ disable_psx_stdout = false;
connect(lost_packet_timer, SIGNAL(timeout()), this, SLOT(onPacketLost()));
connect(&serial, SIGNAL(bytesWritten(qint64)), this, SLOT(onBytesWritten(qint64)));
@@ -38,8 +39,12 @@ QPSXSerial::QPSXSerial(QWidget *parent, APP_INTERFACE interface) :
stdout_ui->setupUi(stdout_dialog);
+ connect(stdout_ui->clean_Btn, SIGNAL(released()), stdout_ui->stdout_Log, SLOT(clear()));
connect(stdout_ui->close_Btn, SIGNAL(released()), stdout_dialog, SLOT(close()));
connect(this, SIGNAL(debug_frame_received(QString)), stdout_ui->stdout_Log, SLOT(append(QString)));
+
+ setWindowTitle( "QPSXSerial " +
+ QString(QPSXSERIAL_VERSION_STR) );
}
ack = false;
@@ -240,6 +245,8 @@ void QPSXSerial::onReadyRead(void)
}
}
+ qDebug() << data;
+
if(cdrom_petition == true)
{
if(data.contains("#") == true)
@@ -529,7 +536,9 @@ void QPSXSerial::sendData(QByteArray data, QString fileName)
}
else if(app_interface == CLI_APP)
{
- if( (i - last_i) > data.count() >> 7)
+ if( ( (i - last_i) > (data.count() >> 7))
+ ||
+ (i > (data.count() - (data.count() >> 7) ) ) )
{
int j;
bool draw_arrow = true;