- begin adding PSRAM support fix
This commit is contained in:
ZanzyTHEbar 2022-12-14 17:11:21 +00:00
parent 3c4df97b70
commit 7537c68930
2 changed files with 3 additions and 16 deletions

View File

@ -35,15 +35,12 @@ void CameraHandler::setupBasicResolution()
config.pixel_format = PIXFORMAT_JPEG;
config.frame_size = FRAMESIZE_240X240;
#if PSRAM_INIT_FAILURE
config.fb_location = CAMERA_FB_IN_DRAM;
#endif
if (!psramFound())
{
log_e("Did not find psram, setting lower image quality");
config.jpeg_quality = 1;
config.fb_count = 1;
config.fb_location = CAMERA_FB_IN_DRAM;
config.jpeg_quality = 9;
config.fb_count = 2;
return;
}

View File

@ -26,13 +26,6 @@ enableADHOC=0 ; 0 = disable, 1 = enable
adhocChannel=1 ; channel to use for adhoc network
enableOTA=1 ; 0 = disable, 1 = enable
[esp_no_psram]
# If the ESP32 fails the PSRAM test, set this to 1
# and comment out the lines in [common] that say
#-DBOARD_HAS_PSRAM ; enable psram
#-mfix-esp32-psram-cache-issue ; fix for psram
noPSRAM=0 ; 0 = disable, 1 = enable
; DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING
[pinoutsESPCAM_M5STACK]
; M5-Stack camera
@ -168,7 +161,6 @@ board_build.partitions = min_spiffs.csv ; uncomment this to use the min_spiffs p
build_flags =
!python tools\autoversioning.py ; add build version to build as preprocessor defines
!python tools\git_rev.py ; add git revision to build as preprocessor defines
-DPSRAM_INIT_FAILURE=${esp_no_psram.noPSRAM} ; add psram error build flags
-DOTA_SERVER_PORT=${wifi.OTAServerPort} ; Set the OTA server
-DENABLE_ADHOC=${wifi.enableADHOC}
-DADHOC_CHANNEL=${wifi.adhocChannel}
@ -189,8 +181,6 @@ build_flags =
-DBOARD_HAS_PSRAM ; enable psram
-mfix-esp32-psram-cache-issue ; fix for psram
;build_unflags = -Os ; disable optimization for size
lib_ldf_mode = deep+
upload_speed = 115200 ;115200 is used for compatability - if you are on windows and want the code to flash faster use 921600