Merge pull request #5 from imnotjames/patch-1
fix: actually set vcom gpio value
This commit is contained in:
commit
2e0bde76a4
@ -77,7 +77,7 @@ static void vcom_timer_callback(struct timer_list *t)
|
|||||||
|
|
||||||
// Toggle the GPIO pin
|
// Toggle the GPIO pin
|
||||||
vcom_setting = (vcom_setting) ? 0 : 1;
|
vcom_setting = (vcom_setting) ? 0 : 1;
|
||||||
gpiod_set_value(panel->gpio_vcom, 1);
|
gpiod_set_value(panel->gpio_vcom, vcom_setting);
|
||||||
|
|
||||||
// Reschedule the timer
|
// Reschedule the timer
|
||||||
mod_timer(&panel->vcom_timer, jiffies + msecs_to_jiffies(1000));
|
mod_timer(&panel->vcom_timer, jiffies + msecs_to_jiffies(1000));
|
||||||
|
Loading…
Reference in New Issue
Block a user