From a57eaf97b40f9b85c6e8f88c4224d18d3d1d7bcf Mon Sep 17 00:00:00 2001 From: lm Date: Tue, 11 Jan 2011 19:40:56 +0100 Subject: [PATCH] Fixed MSVC compile error --- src/comm/MAVLinkProtocol.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index 1a01ed727..a8d5184f7 100644 --- a/src/comm/MAVLinkProtocol.cc +++ b/src/comm/MAVLinkProtocol.cc @@ -109,7 +109,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b) // Log data if (m_loggingEnabled) { - int len = MAVLINK_MAX_PACKET_LEN+sizeof(quint64); + const int len = MAVLINK_MAX_PACKET_LEN+sizeof(quint64); uint8_t buf[len]; quint64 time = QGC::groundTimeUsecs(); memcpy(buf, (void*)&time, sizeof(quint64)); -- 2.22.0