diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 1f30c2f..effe486 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -427,15 +427,15 @@ void MainWindow::frameSaved( FlyCapture2::Image * image ) { } ui->buffer->display( image_buffer->length() ); + comm.sendBuffer( image_buffer->length() ); + if ( status == STOPPING && image_buffer->empty() ) startStopRecording(); - comm.sendBuffer( image_buffer->length() ); m.unlock(); } void MainWindow::setLcd() { - qDebug() << "setting lcd"; ui->framesCaptured->display( recorder.frameNumber() ); ui->timeCaptured->display( QString( "%1:%2" ).arg( ( ( ( int )recorder.timeCaptured() ) / 60 ) ).arg( ( int )recorder.timeCaptured() % 60 ) ); } diff --git a/src/serialcommunicator.h b/src/serialcommunicator.h index de92430..7490bd1 100644 --- a/src/serialcommunicator.h +++ b/src/serialcommunicator.h @@ -39,7 +39,7 @@ class SerialCommunicator : public QObject { void sendBuffer( int buff ) { if ( lastBuff != buff ) - write( QByteArray( "B" ) + QString::number( buff ).toUtf8() ); + write( QByteArray( "B:" ) + QString::number( buff ).toUtf8() ); } private: