Skip to content

Commit d68efb8

Browse files
committed
try enabling mp3 on any espressif chip with at least 4MB flash
1 parent c7807cf commit d68efb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ports/espressif/mpconfigport.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ CIRCUITPY_BLEIO ?= 0
135135
else
136136
CIRCUITPY_BLEIO ?= 1
137137
endif
138-
CIRCUITPY_AUDIOMP3 ?= 1
139138

140139
endif
141140

@@ -145,10 +144,11 @@ CIRCUITPY_BITMAPFILTER ?= 0
145144
OPTIMIZATION_FLAGS ?= -Os
146145
endif
147146

148-
# No room for dualbank on boards with 2MB flash
147+
# No room for dualbank or mp3 on boards with 2MB flash
149148
ifeq ($(CIRCUITPY_ESP_FLASH_SIZE),2MB)
150149
CIRCUITPY_BITMAPFILTER ?= 0
151150
CIRCUITPY_DUALBANK = 0
151+
CIRCUITPY_AUDIOMP3 = 0
152152
endif
153153

154154
# Modules dependent on other modules
@@ -180,5 +180,5 @@ USB_NUM_IN_ENDPOINTS = 5
180180
CIRCUITPY_MESSAGE_COMPRESSION_LEVEL ?= 1
181181

182182
# Don't enable mp3 by default but DO allocate it to on-chip RAM if enabled
183-
CIRCUITPY_AUDIOMP3 ?= 0
183+
CIRCUITPY_AUDIOMP3 ?= 1
184184
CIRCUITPY_AUDIOMP3_USE_PORT_ALLOCATOR ?= 1

0 commit comments

Comments
 (0)