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:
parent
8c744a331d
commit
f4b53b75c1
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user