makerbot / G3Firmware

The firmware for generation 3 and later RepRap electronics.
89 stars 75 forks source link

HOST_CMD_FIND_AXES_MAXIMUM doesn't handle flags #46

Open paeaetech opened 14 years ago

paeaetech commented 14 years ago

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