diff --git a/ESP32_PrusaConnectCam/camera.cpp b/ESP32_PrusaConnectCam/camera.cpp index af49074..265a17e 100644 --- a/ESP32_PrusaConnectCam/camera.cpp +++ b/ESP32_PrusaConnectCam/camera.cpp @@ -488,7 +488,8 @@ void Camera::CaptureStream(camera_fb_t* i_buf) { /* check if the photo is rotated */ bool ExifStatus = false; -#if false + +#if (true == CAMERA_EXIF_ROTATION_STREAM) if (1 != imageExifRotation) { /* 1 = image rotation 0 degree */ /* generate exif header */ update_exif_from_cfg(imageExifRotation); diff --git a/ESP32_PrusaConnectCam/mcu_cfg.h b/ESP32_PrusaConnectCam/mcu_cfg.h index f34ee4a..6ed8014 100644 --- a/ESP32_PrusaConnectCam/mcu_cfg.h +++ b/ESP32_PrusaConnectCam/mcu_cfg.h @@ -101,6 +101,7 @@ #define CAMERA_MAKE "OmniVision" ///< Camera make string #define CAMERA_MODEL "OV2640" ///< Camera model string #define CAMERA_SOFTWARE "Prusa ESP32-cam" ///< Camera software string +#define CAMERA_EXIF_ROTATION_STREAM false ///< enable camera exif rotation for stream /* ---------------- TIMELAPS CFG ----------------*/ #define TIMELAPS_PHOTO_FOLDER "/timelapse" ///< folder for timelaps photos