From 575a8aac1fe403204882920d0d16cbf2ef524d5f Mon Sep 17 00:00:00 2001 From: James Ward Date: Sat, 9 Sep 2023 19:57:26 -0400 Subject: [PATCH] fix: actually set vcom gpio value this was hard coded to always set the vcom to 1 when instead it's supposed to be alternating on and off --- src/drm_iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drm_iface.c b/src/drm_iface.c index 19a9226..26a6385 100644 --- a/src/drm_iface.c +++ b/src/drm_iface.c @@ -77,7 +77,7 @@ static void vcom_timer_callback(struct timer_list *t) // Toggle the GPIO pin vcom_setting = (vcom_setting) ? 0 : 1; - gpiod_set_value(panel->gpio_vcom, 1); + gpiod_set_value(panel->gpio_vcom, vcom_setting); // Reschedule the timer mod_timer(&panel->vcom_timer, jiffies + msecs_to_jiffies(1000));