1
0
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:
peabody124 2010-09-08 18:48:16 +00:00 committed by peabody124
parent 05aa044c21
commit cd9f5a0a5d

View File

@ -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);