From aa4768e428dae4ab30753d7442c0ef2461c930f7 Mon Sep 17 00:00:00 2001 From: Tim Curtis Date: Fri, 13 Dec 2024 16:24:58 -0500 Subject: [PATCH] [per-config] Leave DSI controls enabled --- www/per-config.php | 3 +-- www/templates/per-config.html | 14 +++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/www/per-config.php b/www/per-config.php index 08933a17..b1d5bf79 100644 --- a/www/per-config.php +++ b/www/per-config.php @@ -252,6 +252,7 @@ // DSI DISPLAYS (PI TOUCH1/TOUCH2) + $_dsi_ctl_disable = $_SESSION['dsi_scn_type'] == 'none' ? 'disabled' : ''; // NOTE: The option 'none' is used in xinitrc to determine whether HDMI or DSI configuration is used $_select['dsi_scn_type'] .= "\n"; $_select['dsi_scn_type'] .= "\n"; @@ -264,10 +265,8 @@ //$_select['pixel_aspect_ratio'] .= "\n"; //$_select['pixel_aspect_ratio'] .= "\n"; - $_dsi_scn_brightness_disable = $_SESSION['dsi_scn_type'] == 'none' ? 'disabled' : ''; $_select['dsi_scn_brightness'] = $_SESSION['dsi_scn_brightness']; - $_dsi_scn_rotate_disable = $_SESSION['dsi_scn_type'] == 'none' ? 'disabled' : ''; if ($_SESSION['dsi_scn_type'] == '1' || $_SESSION['dsi_scn_type'] == 'none') { $_dsi_scn_brightness_min = '0'; $_dsi_scn_brightness_max = '255'; diff --git a/www/templates/per-config.html b/www/templates/per-config.html index f18124b1..ca82ec6a 100644 --- a/www/templates/per-config.html +++ b/www/templates/per-config.html @@ -154,7 +154,7 @@

Peripherals

- $_select[dsi_scn_type] @@ -162,16 +162,16 @@

Peripherals

- $_select[dsi_port] - +
- - + + Touch1: 0-255, Touch2: 1-31 @@ -192,10 +192,10 @@

Peripherals

- $_select[dsi_scn_rotate] - +