Merge branch 'zero_copy' into memory_api

This commit is contained in:
J. Nick Koston 2025-07-20 21:15:16 -10:00
commit 3d832e4d92
No known key found for this signature in database

View File

@ -230,6 +230,9 @@ void APIConnection::loop() {
msg.key = camera::Camera::instance()->get_object_id_hash();
msg.set_data(this->image_reader_->peek_data_buffer(), to_send);
msg.done = done;
#ifdef USE_DEVICES
msg.device_id = camera::Camera::instance()->get_device_id();
#endif
if (this->send_message_(msg, CameraImageResponse::MESSAGE_TYPE)) {
this->image_reader_->consume_data(to_send);