mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +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:
parent
8c744a331d
commit
f4b53b75c1
@ -38,6 +38,11 @@ LogFile::LogFile(QObject *parent) :
|
|||||||
m_useProvidedTimeStamp(false)
|
m_useProvidedTimeStamp(false)
|
||||||
{
|
{
|
||||||
connect(&m_timer, SIGNAL(timeout()), this, SLOT(timerFired()));
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -39,6 +39,9 @@ class QTCREATOR_UTILS_EXPORT LogFile : public QIODevice {
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit LogFile(QObject *parent = 0);
|
explicit LogFile(QObject *parent = 0);
|
||||||
|
|
||||||
|
bool isSequential() const;
|
||||||
|
|
||||||
qint64 bytesAvailable() const;
|
qint64 bytesAvailable() const;
|
||||||
qint64 bytesToWrite() const
|
qint64 bytesToWrite() const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user