mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Ground/Logging: Fix bug overwriting timestamp. Thanks Cranphin.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1563 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
05aa044c21
commit
cd9f5a0a5d
@ -83,7 +83,7 @@ void LoggingThread::objectUpdated(UAVObject * obj)
|
||||
|
||||
obj->pack(&buffer[8]);
|
||||
memcpy(buffer,&timeStamp,4);
|
||||
memcpy(buffer,&objSize,4);
|
||||
memcpy(&buffer[4],&objSize,4);
|
||||
|
||||
QWriteLocker locker(&lock);
|
||||
qint64 written = logFile.write((char *) buffer,objSize+8);
|
||||
|
Loading…
x
Reference in New Issue
Block a user