Skip to content

Commit ed9db80

Browse files
authored
Switch SAMD51 back to -Os
It messes up neopixel timing otherwise. Fixes adafruit#1326
1 parent 50f5d27 commit ed9db80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/atmel-samd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_SAMD21 -DCFG_TUD_CDC_RX_BUFSIZE=128 -DCFG_TUD_C
9393
endif
9494

9595
ifeq ($(CHIP_FAMILY), samd51)
96-
CFLAGS += -O0 -DNDEBUG
96+
CFLAGS += -Os -DNDEBUG
9797
# TinyUSB defines
9898
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_SAMD51 -DCFG_TUD_CDC_RX_BUFSIZE=256 -DCFG_TUD_CDC_TX_BUFSIZE=256 -DCFG_TUD_MSC_BUFSIZE=1024
9999
endif

0 commit comments

Comments
 (0)