Merge pull request #3934 from DavePutz/issue_3807

Issue 3931 - Onboard LEDs lighting up due to wrong memset size in board_reset_user_neopixels()
This commit is contained in:
Dan Halbert 2021-01-05 16:04:03 -05:00 committed by GitHub
commit 590fe8e8b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
void board_reset_user_neopixels(const mcu_pin_obj_t* pin, size_t count) {
// Turn off on-board NeoPixel string
uint8_t empty[count * 3];
memset(empty, 0, count);
memset(empty, 0, count * 3);
digitalio_digitalinout_obj_t neopixel_pin;
common_hal_digitalio_digitalinout_construct(&neopixel_pin, pin);
common_hal_digitalio_digitalinout_switch_to_output(&neopixel_pin, false,