mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
fix camera FB macro
This commit is contained in:
parent
965499e067
commit
1066caf6cd
@ -43,13 +43,10 @@ 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.fb_location = CAMERA_FB_IN_DRAM;
|
||||
config.jpeg_quality = 1;
|
||||
config.fb_count = 1;
|
||||
return;
|
||||
|
||||
@ -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
|
||||
|
||||
[ESP_GITHUB_OTA]
|
||||
@ -269,7 +262,6 @@ build_flags =
|
||||
${ESP_GITHUB_OTA.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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user