Skip to content

Commit

Permalink
Merge pull request #21 from bringauto/update_packages
Browse files Browse the repository at this point in the history
Update packages for Ubuntu 24.04
  • Loading branch information
Melky-Phoe authored Sep 25, 2024
2 parents 0215140 + 9eb8468 commit 0b37e35
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ INCLUDE(CheckPIESupported)
CHECK_PIE_SUPPORTED()
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)

SET(MISSION_MODULE_VERSION 1.2.9)
SET(MISSION_MODULE_VERSION 1.2.10)

OPTION(BRINGAUTO_INSTALL "Configure install" OFF)
OPTION(BRINGAUTO_PACKAGE "Configure package creation" OFF)
Expand Down Expand Up @@ -59,11 +59,10 @@ FIND_PACKAGE(fleet-protocol-interface 2.0.0 REQUIRED)
FIND_PACKAGE(fleet-protocol-cxx-helpers-static 1.1.1 REQUIRED)

IF (FLEET_PROTOCOL_BUILD_EXTERNAL_SERVER)
FIND_PACKAGE(fleet-http-client-shared 1.3.0 REQUIRED)
FIND_PACKAGE(fleet-http-client-shared 1.5.0 REQUIRED)
### fleet-http-client dependencies
FIND_PACKAGE(Boost REQUIRED)
FIND_PACKAGE(cpprestsdk REQUIRED)
FIND_PACKAGE(libbringauto_logger 1.2.0 REQUIRED)
ENDIF ()

CMDEF_ADD_LIBRARY(
Expand Down
7 changes: 3 additions & 4 deletions cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ BA_PACKAGE_LIBRARY(protobuf v4.21.12)
BA_PACKAGE_LIBRARY(zlib v1.2.11)

IF (FLEET_PROTOCOL_BUILD_EXTERNAL_SERVER)
BA_PACKAGE_LIBRARY(fleet-http-client-shared v1.3.0)
BA_PACKAGE_LIBRARY(boost v1.78.0)
BA_PACKAGE_LIBRARY(cpprestsdk v2.10.20)
BA_PACKAGE_LIBRARY(ba-logger v1.2.0)
BA_PACKAGE_LIBRARY(fleet-http-client-shared v1.5.0)
BA_PACKAGE_LIBRARY(boost v1.86.0)
BA_PACKAGE_LIBRARY(cpprestsdk v2.10.20)
ENDIF ()
5 changes: 3 additions & 2 deletions source/external_server_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ int wait_for_command(int timeout_time_in_ms, void *context) {

auto con = static_cast<struct bamm::Context *> (context);
std::unique_lock lock(con->mutex);
std::vector<std::shared_ptr<org::openapitools::client::model::Message>> commands;
std::pair<std::vector<std::shared_ptr<org::openapitools::client::model::Message>>,
bringauto::fleet_protocol::http_client::FleetApiClient::ReturnCode> commands;
bool parse_commands = con->last_command_timestamp != 0;

try {
Expand All @@ -288,7 +289,7 @@ int wait_for_command(int timeout_time_in_ms, void *context) {
}

bool received_no_commands = true;
for(auto command : commands) {
for(const auto& command : commands.first) {
if(command->getTimestamp() > con->last_command_timestamp) {
con->last_command_timestamp = command->getTimestamp();
}
Expand Down

0 comments on commit 0b37e35

Please sign in to comment.