Skip to content

Commit

Permalink
Merge pull request #3934 from DavePutz/issue_3807
Browse files Browse the repository at this point in the history
Issue 3931 - Onboard LEDs lighting up due to wrong memset size in board_reset_user_neopixels()
  • Loading branch information
dhalbert authored Jan 5, 2021
2 parents 69de4f9 + ce55822 commit 590fe8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor/shared/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 590fe8e

Please sign in to comment.