summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Halbert <halbert@adafruit.com>2021-01-05 16:04:03 -0500
committerGitHub <noreply@github.com>2021-01-05 16:04:03 -0500
commit590fe8e8b1f6eda3f31a83f7d531cdeeeec6a753 (patch)
tree7051541854afe2e16b7190e8eb28a10a8e052ae6
parent69de4f913a62c0bf792cbd2a6a214f6fc60445d6 (diff)
parentce55822680b3b4005f370bbd735d50402cd48925 (diff)
Merge pull request #3934 from DavePutz/issue_3807
Issue 3931 - Onboard LEDs lighting up due to wrong memset size in board_reset_user_neopixels()
-rw-r--r--supervisor/shared/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/supervisor/shared/board.c b/supervisor/shared/board.c
index 30603aa66..6d648510e 100644
--- a/supervisor/shared/board.c
+++ b/supervisor/shared/board.c
@@ -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,