Skip to content

Commit

Permalink
Merge branch 'bugfix/led_strip_potential_buffer_overwrite_v5.1' into …
Browse files Browse the repository at this point in the history
…'release/v5.1'

example: fix led strip memory overwrite before trans done (v5.1)

See merge request espressif/esp-idf!23938
  • Loading branch information
suda-morris committed Jul 3, 2023
2 parents 423931c + 1a68d8d commit 32928e6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ void app_main(void)
}
// Flush RGB values to LEDs
ESP_ERROR_CHECK(rmt_transmit(led_chan, led_encoder, led_strip_pixels, sizeof(led_strip_pixels), &tx_config));
ESP_ERROR_CHECK(rmt_tx_wait_all_done(led_chan, portMAX_DELAY));
vTaskDelay(pdMS_TO_TICKS(EXAMPLE_CHASE_SPEED_MS));
memset(led_strip_pixels, 0, sizeof(led_strip_pixels));
ESP_ERROR_CHECK(rmt_transmit(led_chan, led_encoder, led_strip_pixels, sizeof(led_strip_pixels), &tx_config));
ESP_ERROR_CHECK(rmt_tx_wait_all_done(led_chan, portMAX_DELAY));
vTaskDelay(pdMS_TO_TICKS(EXAMPLE_CHASE_SPEED_MS));
}
start_rgb += 60;
Expand Down

0 comments on commit 32928e6

Please sign in to comment.