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
This commit is contained in:
James Ward 2023-09-09 19:57:26 -04:00 committed by GitHub
parent 8bdc22653f
commit 575a8aac1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));