From 6ba195da9f2e42038d5f9fc81967f25404469955 Mon Sep 17 00:00:00 2001 From: David Madison Date: Fri, 10 Jul 2026 16:08:12 -0400 Subject: [PATCH 1/2] Change clear from memset to fill No significant performance change measured from profiling. Fixes #37 --- Arduino/LEDstream_FastLED/LEDstream_FastLED.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From c45fb120484b1f1e3ec9bf37af1d593cb98a8aba Mon Sep 17 00:00:00 2001 From: David Madison Date: Fri, 10 Jul 2026 16:13:20 -0400 Subject: [PATCH 2/2] Update CI dependencies --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: |