A first Try on Serial.

This commit is contained in:
Hiro Protagonist 2017-03-30 19:49:42 +13:00
parent 5a967c884b
commit 0cec373626

View file

@ -1,7 +1,7 @@
#include "serialcommunicator.h"
#include "QDebug"
SerialCommunicator::SerialCommunicator( QObject * parent ) : QObject( parent ), port( this ), lastBuff { 0 } {
SerialCommunicator::SerialCommunicator( QObject * parent ) : QObject( parent ), port( this ), lastBuff { -1 } {
connect( &port, &QSerialPort::readyRead, this, &SerialCommunicator::handleRead );
}