Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions Arduino/LEDstream_FastLED/LEDstream_FastLED.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading