Skip to content

Commit

Permalink
Minor code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Aug 27, 2024
1 parent c53aa8e commit 757ce99
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/LedStrips/DotStarLedStrip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ GCodeResult DotStarLedStrip::Configure(GCodeBuffer& gb, const StringRef& reply,
bool seen = false;
GCodeResult rslt = CommonConfigure(gb, reply, pinName, seen);

if (gb.Seen('K'))
uint32_t order;
if (gb.TryGetLimitedUIValue('K', order, seen, (uint32_t)ColorOrder::count))
{
uint32_t order;
gb.TryGetLimitedUIValue('K', order, seen, (uint32_t)ColorOrder::count);
colorOrder = (ColorOrder)order;
}

Expand Down

0 comments on commit 757ce99

Please sign in to comment.