Skip to content

Commit 78cbf72

Browse files
committed
Support F-1 in M563 command
1 parent 455e04f commit 78cbf72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GCodes/GCodes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3559,9 +3559,9 @@ GCodeResult GCodes::ManageTool(GCodeBuffer& gb, const StringRef& reply)
35593559
FansBitmap fanMap;
35603560
if (gb.Seen('F'))
35613561
{
3562-
uint32_t fanMapping[MaxFans];
3562+
int32_t fanMapping[MaxFans]; // use a signed array so that F-1 will result in no fans at all
35633563
size_t fanCount = MaxFans;
3564-
gb.GetUnsignedArray(fanMapping, fanCount, false);
3564+
gb.GetIntArray(fanMapping, fanCount, false);
35653565
fanMap = FansBitmap::MakeFromArray(fanMapping, fanCount) & FansBitmap::MakeLowestNBits(MaxFans);
35663566
seen = true;
35673567
}

0 commit comments

Comments
 (0)