From 01d900ad31ce070853b9134245c138f9098269fe Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Mon, 1 Jun 2020 14:43:43 +0100 Subject: simple-cam: Add setting of a control Remove the todo action and add setting of a simple control. More control handling can still be added later. Signed-off-by: Kieran Bingham --- simple-cam.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/simple-cam.cpp b/simple-cam.cpp index 763341a..00ad52b 100644 --- a/simple-cam.cpp +++ b/simple-cam.cpp @@ -279,11 +279,10 @@ int main() requests.push_back(request); /* - * todo: Set controls - * - * ControlList &Request::controls(); - * controls.set(controls::Brightness, 255); + * Controls can be added to a request on a per frame basis. */ + ControlList &controls = request->controls(); + controls.set(controls::Brightness, 0.5); } /* -- cgit v1.2.1