Skip to content

Commit

Permalink
Support F-1 in M563 command
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Aug 3, 2021
1 parent 455e04f commit 78cbf72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GCodes/GCodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3559,9 +3559,9 @@ GCodeResult GCodes::ManageTool(GCodeBuffer& gb, const StringRef& reply)
FansBitmap fanMap;
if (gb.Seen('F'))
{
uint32_t fanMapping[MaxFans];
int32_t fanMapping[MaxFans]; // use a signed array so that F-1 will result in no fans at all
size_t fanCount = MaxFans;
gb.GetUnsignedArray(fanMapping, fanCount, false);
gb.GetIntArray(fanMapping, fanCount, false);
fanMap = FansBitmap::MakeFromArray(fanMapping, fanCount) & FansBitmap::MakeLowestNBits(MaxFans);
seen = true;
}
Expand Down

0 comments on commit 78cbf72

Please sign in to comment.