diff --git a/libs/opmapcontrol/src/core/cache.cpp b/libs/opmapcontrol/src/core/cache.cpp index eb910b56aaa16e6056a8913101c07091b6a74289..712efafbd4ab41d064b6755f42eea504e194d0df 100644 --- a/libs/opmapcontrol/src/core/cache.cpp +++ b/libs/opmapcontrol/src/core/cache.cpp @@ -41,9 +41,9 @@ namespace core { void Cache::setCacheLocation(const QString& value) { cache=value; - routeCache = cache + "RouteCache" + QDir::separator(); - geoCache = cache + "GeocoderCache"+ QDir::separator(); - placemarkCache = cache + "PlacemarkCache" + QDir::separator(); + routeCache = cache + "RouteCache/"; + geoCache = cache + "GeocoderCache/"; + placemarkCache = cache + "PlacemarkCache/"; ImageCache.setGtileCache(value); } QString Cache::CacheLocation() @@ -54,7 +54,7 @@ namespace core { { if(cache.isNull()|cache.isEmpty()) { - cache= Utils::PathUtils().GetStoragePath()+"mapscache"+QDir::separator(); + cache = QDir::homePath() + "/mapscache/"; setCacheLocation(cache); } } diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index bad14173550262a09393a7ed0fe5662be31cf7e4..cee05d9acb3f0446049ffae02d20d8dd0b8414d5 100644 --- a/src/comm/MAVLinkProtocol.cc +++ b/src/comm/MAVLinkProtocol.cc @@ -539,7 +539,7 @@ void MAVLinkProtocol::sendHeartbeat() { mavlink_message_t msg; mavlink_auth_key_t auth; - memset(auth, 0, sizeof(auth)); + memset(&auth, 0, sizeof(auth)); memcpy(auth.key, m_authKey.toStdString().c_str(), qMin(m_authKey.length(), MAVLINK_MSG_AUTH_KEY_FIELD_KEY_LEN)); mavlink_msg_auth_key_encode(getSystemId(), getComponentId(), &msg, &auth); sendMessage(msg);