diff --git a/src/LedStrips/DotStarLedStrip.cpp b/src/LedStrips/DotStarLedStrip.cpp index 764460e92c..63490b76d9 100644 --- a/src/LedStrips/DotStarLedStrip.cpp +++ b/src/LedStrips/DotStarLedStrip.cpp @@ -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; }