From 94cd3a6e69b1516c254a4d54891173f0a6308be3 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 5 Oct 2021 19:21:17 -0400 Subject: [PATCH] Use v4l2-ctrl to list the available controls and display all of them. Use range sliders where appropriate. --- web/ajax/modals/settings.php | 78 +++++++++++++++++++++++++++++++----- 1 file changed, 67 insertions(+), 11 deletions(-) diff --git a/web/ajax/modals/settings.php b/web/ajax/modals/settings.php index 59d19ddbb..d2e27a3b4 100644 --- a/web/ajax/modals/settings.php +++ b/web/ajax/modals/settings.php @@ -1,11 +1,11 @@ $_REQUEST['mid'])); $zmuCommand = getZmuCommand(' -m '.escapeshellarg($_REQUEST['mid']).' -B -C -H -O'); $zmuOutput = exec( $zmuCommand ); -if ( $zmuOutput ) { +if ($zmuOutput) { list($brightness, $contrast, $hue, $colour) = explode(' ', $zmuOutput); $monitor->Brightness($brightness); @@ -13,7 +13,6 @@ if ( $zmuOutput ) { $monitor->Hue($hue); $monitor->Colour($colour); } - ?>