summaryrefslogtreecommitdiff
path: root/hid
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-12-06 20:56:27 +0300
committerMaxim Devaev <[email protected]>2022-12-06 20:56:27 +0300
commitc6e3df51a0ac2737df72ca9394b70fce5f31a1c2 (patch)
treebaef05a6de4e5ffe77315cb24997bbbea3ac30fd /hid
parent0d184daf0d2311025c6c614333546d05e45ba41d (diff)
hid: fixed !HID_DYNAMIC
Diffstat (limited to 'hid')
-rw-r--r--hid/src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/hid/src/main.cpp b/hid/src/main.cpp
index 376d8a68..9ac6ea21 100644
--- a/hid/src/main.cpp
+++ b/hid/src/main.cpp
@@ -54,10 +54,12 @@ static unsigned long _reset_timestamp;
// -----------------------------------------------------------------------------
+#ifdef HID_DYNAMIC
static void _resetRequest() {
_reset_required = true;
_reset_timestamp = micros();
}
+#endif
static void _cmdSetKeyboard(const uint8_t *data) { // 1 bytes
# ifdef HID_DYNAMIC