Skip to content

HOST_CMD_FIND_AXES_MAXIMUM doesn't handle flags #46

@ghost

Description

Currently FIND_AXES_MAXIMUM does not read flags from the received packet as find_axes_minimum does and instead uses 0 as flags. Find a patch below to fix that.
---
SanguinoMaster/PacketProcessor.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/SanguinoMaster/PacketProcessor.cpp b/SanguinoMaster/PacketProcessor.cpp
index f07922f..060d0cd 100644
--- a/SanguinoMaster/PacketProcessor.cpp
+++ b/SanguinoMaster/PacketProcessor.cpp
@@ -404,6 +404,9 @@ void handle_commands()
        // Belay until we're at a good location.
        if (!is_point_buffer_empty()) { return; }

+        //which ones are we going to?
+        flags = cursor.read_8();
+
         //find them!
         seek_maximums(
           flags & 1,
-- 
1.7.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions