fix psram-required check

This commit is contained in:
Jeff Epler 2025-03-19 15:03:42 -05:00
parent 59a61155fc
commit e78e12fa7c
3 changed files with 5 additions and 1 deletions

3
.gitmodules vendored
View file

@ -10,3 +10,6 @@
[submodule "lib/Pico-PIO-USB"]
path = lib/Pico-PIO-USB
url = https://github.com/tannewt/Pico-PIO-USB
[submodule "external/pico-extras"]
path = external/pico-extras
url = https://github.com/raspberrypi/pico-extras.git

1
external/pico-extras vendored Submodule

@ -0,0 +1 @@
Subproject commit f05d4f7371802440cadd36744789a26944d950ac

View file

@ -40,7 +40,7 @@ while getopts "hvd:m:" o; do
done
TAG=fruitjam_${DISP_WIDTH}x${DISP_HEIGHT}_${MEMSIZE}k
PSRAM=$((MEMSIZE > 448 || DISP_WIDTH > 640))
PSRAM=$((MEMSIZE > 448 || DISP_WIDTH < 640))
if [ $PSRAM -ne 0 ] ; then
TAG=${TAG}_psram
CMAKE_ARGS="$CMAKE_ARGS -DUSE_PSRAM=1"