Merge pull request #5 from imnotjames/patch-1

fix: actually set vcom gpio value
This commit is contained in:
Andrew D'Angelo 2023-09-17 09:39:30 -05:00 committed by GitHub
commit 2e0bde76a4
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));