Skip to content

Commit

Permalink
[RSDK-9553] - Avoid RenderFrame log spam (#31)
Browse files Browse the repository at this point in the history
* Dummy image return

* Lint
  • Loading branch information
seanavery authored Dec 17, 2024
1 parent b06d495 commit 8a34d40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cam/cam.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,9 @@ func (vs *videostore) Stream(_ context.Context, _ ...gostream.ErrorHandler) (gos
}

func (vs *videostore) Image(_ context.Context, _ string, _ map[string]interface{}) ([]byte, camera.ImageMetadata, error) {
return nil, camera.ImageMetadata{}, errors.New("not implemented")
// Return a single empty byte to satisfy the Image method
// avoiding errors from the RenderFrame GRPC call.
return []byte{0}, camera.ImageMetadata{}, nil
}

func (vs *videostore) Images(_ context.Context) ([]camera.NamedImage, resource.ResponseMetadata, error) {
Expand Down

0 comments on commit 8a34d40

Please sign in to comment.