forked from kofal.net/zmk
fix(usb): Split HID from core USB, logging fix.
* Split core USB init from USB HID init. * Tweak logging to avoid "log loop" causing spurious buffer messages on startup.
This commit is contained in:
committed by
Pete Johanson
parent
789fd03f8b
commit
40cd8da743
@@ -23,7 +23,3 @@ enum zmk_usb_conn_state zmk_usb_get_conn_state();
|
||||
|
||||
static inline bool zmk_usb_is_powered() { return zmk_usb_get_conn_state() != ZMK_USB_CONN_NONE; }
|
||||
static inline bool zmk_usb_is_hid_ready() { return zmk_usb_get_conn_state() == ZMK_USB_CONN_HID; }
|
||||
|
||||
#ifdef CONFIG_ZMK_USB
|
||||
int zmk_usb_hid_send_report(const uint8_t *report, size_t len);
|
||||
#endif /* CONFIG_ZMK_USB */
|
||||
9
app/include/zmk/usb_hid.h
Normal file
9
app/include/zmk/usb_hid.h
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Copyright (c) 2020 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
int zmk_usb_hid_send_report(const uint8_t *report, size_t len);
|
||||
Reference in New Issue
Block a user