From 0338481090f4c2330a7fd237416cf66ba2bd4d22 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Wed, 29 Sep 2021 09:30:25 -0700 Subject: [Keyboard] Updates for Tractyl Manuform config (#14641) --- keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c') diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c b/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c index 240219f1d3..394c597b84 100644 --- a/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c +++ b/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c @@ -23,3 +23,9 @@ void matrix_scan_sub_kb(void) { reset_keyboard(); } } + +bool usb_vbus_state(void) { + setPinInputLow(USB_VBUS_PIN); + wait_us(5); + return readPin(USB_VBUS_PIN); +} -- cgit v1.2.3