diff options
| author | DavePutz <dwputz@gmail.com> | 2021-01-04 15:50:09 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-04 15:50:09 -0600 |
| commit | ce55822680b3b4005f370bbd735d50402cd48925 (patch) | |
| tree | 18f3c26ebc5249489ae54d2d6a5c61913a8b8b96 /supervisor/shared | |
| parent | 76e9f495c744153f10f40992a04256bf8770184b (diff) | |
Fix size of memset in board_reset_user_neopixels()
Diffstat (limited to 'supervisor/shared')
| -rw-r--r-- | supervisor/shared/board.c | 2 |
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, |
