1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

LP-517 gcs: declare uavtalk log file as a sequential device

fixes spurious "UAVTalk - error : bad type" errors when replaying a log file
This commit is contained in:
Philippe Renon 2017-05-11 01:09:43 +02:00
parent 8c744a331d
commit f4b53b75c1
2 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,11 @@ LogFile::LogFile(QObject *parent) :
m_useProvidedTimeStamp(false)
{
connect(&m_timer, SIGNAL(timeout()), this, SLOT(timerFired()));
bool LogFile::isSequential() const
{
// returning true fixes "UAVTalk - error : bad type" errors when replaying a log file
return true;
}
/**

View File

@ -39,6 +39,9 @@ class QTCREATOR_UTILS_EXPORT LogFile : public QIODevice {
Q_OBJECT
public:
explicit LogFile(QObject *parent = 0);
bool isSequential() const;
qint64 bytesAvailable() const;
qint64 bytesToWrite() const
{