From f9a05c49978bfcce7369d709826ac1a0ac8c9d29 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 20 Oct 2020 21:03:03 -0600 Subject: [PATCH] Fix register write size for programmable function control --- keyboards/system76/launch_beta_1/usb_mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/system76/launch_beta_1/usb_mux.c b/keyboards/system76/launch_beta_1/usb_mux.c index 6550abe38a6..1a88d38a4e1 100644 --- a/keyboards/system76/launch_beta_1/usb_mux.c +++ b/keyboards/system76/launch_beta_1/usb_mux.c @@ -211,7 +211,7 @@ int usb7206_gpio_init(struct USB7206_GPIO * self) { int res = 0; // Set programmable function to GPIO - res = usb7206_write_reg_32(self->usb7206, PF1_CTL + (self->pf - 1), 0); + res = usb7206_write_reg_8(self->usb7206, PF1_CTL + (self->pf - 1), 0); if (res < 0) return res; // Set GPIO to false by default