Skip to content

Commit 6de5a55

Browse files
Рябчиков ДенисРябчиков Денис
authored andcommitted
Fix: Build fails for esp32s3 Echoear (#1505)
1 parent 01a12b3 commit 6de5a55

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

main/boards/common/esp32_camera.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ bool Esp32Camera::Capture() {
410410
frame_.len = buf.bytesused;
411411
frame_.data = (uint8_t*)heap_caps_malloc(frame_.len, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
412412
if (!frame_.data) {
413-
ESP_LOGE(TAG, "alloc frame copy failed: need allocate %d bytes", buf.bytesused);
413+
ESP_LOGE(TAG, "alloc frame copy failed: need allocate %lu bytes", buf.bytesused);
414414
if (ioctl(video_fd_, VIDIOC_QBUF, &buf) != 0) {
415415
ESP_LOGE(TAG, "Cleanup: VIDIOC_QBUF failed");
416416
}
@@ -482,7 +482,7 @@ bool Esp32Camera::Capture() {
482482
break;
483483
}
484484
default:
485-
ESP_LOGE(TAG, "unsupported sensor format: 0x%08x", sensor_format_);
485+
ESP_LOGE(TAG, "unsupported sensor format: 0x%08lx", sensor_format_);
486486
if (ioctl(video_fd_, VIDIOC_QBUF, &buf) != 0) {
487487
ESP_LOGE(TAG, "Cleanup: VIDIOC_QBUF failed");
488488
}
@@ -524,7 +524,7 @@ bool Esp32Camera::Capture() {
524524
rotate_cfg.in_pixel_fmt = ESP_IMGFX_PIXEL_FMT_RGB888;
525525
break;
526526
default:
527-
ESP_LOGE(TAG, "unsupported sensor format: 0x%08x", sensor_format_);
527+
ESP_LOGE(TAG, "unsupported sensor format: 0x%08lx", sensor_format_);
528528
if (ioctl(video_fd_, VIDIOC_QBUF, &buf) != 0) {
529529
ESP_LOGE(TAG, "Cleanup: VIDIOC_QBUF failed");
530530
}
@@ -639,7 +639,7 @@ bool Esp32Camera::Capture() {
639639
break;
640640
}
641641
default:
642-
ESP_LOGE(TAG, "unsupported sensor format for PPA rotation: 0x%08x", sensor_format_);
642+
ESP_LOGE(TAG, "unsupported sensor format for PPA rotation: 0x%08lx", sensor_format_);
643643
if (ioctl(video_fd_, VIDIOC_QBUF, &buf) != 0) {
644644
ESP_LOGE(TAG, "Cleanup: VIDIOC_QBUF failed");
645645
}

main/display/lvgl_display/jpg/image_to_jpeg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static uint8_t* convert_input_to_encoder_buf(const uint8_t* src, uint16_t width,
143143
src_len = static_cast<uint32_t>(width * height * 2);
144144
break;
145145
[[unlikely]] default:
146-
ESP_LOGE(TAG, "[Unreachable Case] unsupported format: 0x%08x", format);
146+
ESP_LOGE(TAG, "[Unreachable Case] unsupported format: 0x%08lx", format);
147147
std::unreachable();
148148
}
149149
int sz = (int)width * (int)height * 2;
@@ -186,7 +186,7 @@ static uint8_t* convert_input_to_encoder_buf(const uint8_t* src, uint16_t width,
186186
*out_size = sz;
187187
return buf;
188188
}
189-
ESP_LOGE(TAG, "unsupported format: 0x%08x", format);
189+
ESP_LOGE(TAG, "unsupported format: 0x%08lx", format);
190190
if (out_size)
191191
*out_size = 0;
192192
return nullptr;

0 commit comments

Comments
 (0)