mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-18 22:13:45 +02:00
Fixing small stuff
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include "UVCStream.hpp"
|
||||
#include <cstdio> // for snprintf
|
||||
#include "driver/usb_serial_jtag.h" // for clean handover from COM to TinyUSB
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
// no deps on main globals here; handover is performed in main before calling setup when needed
|
||||
@@ -35,6 +34,9 @@ extern "C" {
|
||||
}
|
||||
}
|
||||
|
||||
// single definition of shared framebuffer storage
|
||||
UVCStreamHelpers::fb_t UVCStreamHelpers::s_fb = {};
|
||||
|
||||
static esp_err_t UVCStreamHelpers::camera_start_cb(uvc_format_t format, int width, int height, int rate, void *cb_ctx)
|
||||
{
|
||||
ESP_LOGI(UVC_STREAM_TAG, "Camera Start");
|
||||
|
||||
@@ -40,7 +40,8 @@ namespace UVCStreamHelpers
|
||||
uvc_fb_t uvc_fb;
|
||||
} fb_t;
|
||||
|
||||
static fb_t s_fb;
|
||||
// single storage is defined in UVCStream.cpp
|
||||
extern fb_t s_fb;
|
||||
|
||||
static esp_err_t camera_start_cb(uvc_format_t format, int width, int height, int rate, void *cb_ctx);
|
||||
static void camera_stop_cb(void *cb_ctx);
|
||||
|
||||
Reference in New Issue
Block a user