Skip to content

Commit 590fe8e

Browse files
authored
Merge pull request #3934 from DavePutz/issue_3807
Issue 3931 - Onboard LEDs lighting up due to wrong memset size in board_reset_user_neopixels()
2 parents 69de4f9 + ce55822 commit 590fe8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/shared/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
void board_reset_user_neopixels(const mcu_pin_obj_t* pin, size_t count) {
3737
// Turn off on-board NeoPixel string
3838
uint8_t empty[count * 3];
39-
memset(empty, 0, count);
39+
memset(empty, 0, count * 3);
4040
digitalio_digitalinout_obj_t neopixel_pin;
4141
common_hal_digitalio_digitalinout_construct(&neopixel_pin, pin);
4242
common_hal_digitalio_digitalinout_switch_to_output(&neopixel_pin, false,

0 commit comments

Comments
 (0)