| 57 | } |
| 58 | |
| 59 | void CLEDController::clearLedDataInternal(int nLeds) { |
| 60 | // On common code that runs on avr, every byte counts. |
| 61 | fl::u16 n = nLeds >= 0 ? static_cast<fl::u16>(nLeds) : static_cast<fl::u16>(mLeds.size()); |
| 62 | if (mLeds.data()) { |
| 63 | fl::memset((void*)mLeds.data(), 0, sizeof(CRGB) * n); |
| 64 | } |
| 65 | |
| 66 | } |
| 67 | |
| 68 | void CLEDController::removeFromList(CLEDController* controller) { |
| 69 | if (controller == nullptr) { |