Skip to content

Commit

Permalink
Merge branch '3.4-input-shaping' of https://github.com/Duet3D/RepRapF…
Browse files Browse the repository at this point in the history
…irmware into 3.4-input-shaping
  • Loading branch information
dc42 committed Aug 3, 2021
2 parents b7e6d24 + 85c9a13 commit 43370dd
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 @@ -3583,9 +3583,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 43370dd

Please sign in to comment.