Skip to content

Commit

Permalink
hopefully added your wanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dafiliks committed Dec 5, 2023
1 parent 051fe2e commit 9f5e841
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1370,13 +1370,10 @@ namespace isobus
/// @returns true if the message was sent
bool send_delete_object_pool() const;

bool send_working_set_maintenance(bool initializing) const;

/// @brief Sends the working set maintenance message
/// @param[in] initializing Used to set the initializing bit
/// @param[in] workingSetVersion The version supported by the working set
/// @returns true if the message was sent
bool send_working_set_maintenance(bool initializing, VTVersion workingSetVersion) const;
bool send_working_set_maintenance(bool initializing) const;

/// @brief Sends the get memory message
/// @details This message checks to see if the VT has enough memory available to store your object pool(s)
Expand Down
4 changes: 3 additions & 1 deletion isobus/src/isobus_virtual_terminal_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <map>
#include <unordered_map>

static constexpr std::uint8_t SUPPORTED_VT_VERSION = 0x06;

namespace isobus
{
VirtualTerminalClient::VirtualTerminalClient(std::shared_ptr<PartneredControlFunction> partner, std::shared_ptr<InternalControlFunction> clientSource) :
Expand Down Expand Up @@ -1771,7 +1773,7 @@ namespace isobus

const std::array<std::uint8_t, CAN_DATA_LENGTH> buffer = { static_cast<std::uint8_t>(Function::WorkingSetMaintenanceMessage),
bitmask,
0x06,
SUPPORTED_VT_VERSION,
0xFF,
0xFF,
0xFF,
Expand Down

0 comments on commit 9f5e841

Please sign in to comment.