diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15ce9c8..e1e7c2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,10 +25,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v7 - name: Setup Arduino CLI - uses: arduino/setup-arduino-cli@v1.1.1 + uses: arduino/setup-arduino-cli@v2.0.0 - name: Install Board Platform run: | diff --git a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino index 6032e3f..2ff096c 100644 --- a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino +++ b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino @@ -200,7 +200,7 @@ void headerMode(uint8_t c){ D_LED(HIGH); ledIndex = 0; ledsRemaining = (256UL * (uint32_t)hi + (uint32_t)lo + 1UL); - memset(leds, 0, Num_Leds * sizeof(struct CRGB)); + fill_solid(leds, Num_Leds, CRGB::Black); mode = Data; // Proceed to latch wait mode } headPos = 0; // Reset header position regardless of checksum result @@ -280,7 +280,7 @@ void timeouts(){ // If no data received for an extended time, turn off all LEDs. if(SerialTimeout != 0 && (t - lastByteTime) >= (uint32_t) SerialTimeout * Timebase) { - memset(leds, 0, Num_Leds * sizeof(struct CRGB)); //filling Led array by zeroes + fill_solid(leds, Num_Leds, CRGB::Black); FastLED.show(); mode = Header; lastByteTime = t; // Reset counter